sendMessage method

  1. @override
Future<void> sendMessage({
  1. required String message,
  2. String? messageNamespace,
})
override

Sends the given message to the cast receiver. On Android and iOS an optional messageNamespace can be provided on which the message should be sent. Should there be a messageNamespace provided on Web, it will be ignored.

Implementation

@override
Future<void> sendMessage({
  required String message,
  String? messageNamespace,
}) =>
    CastManagerPlatformInterface.instance.sendMessage(
      message: message,
      messageNamespace: messageNamespace,
    );