sendMessage method

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

Sends the given message to the cast receiver.

Implementation

@override
Future<void> sendMessage({
  required String message,
  String? messageNamespace,
}) =>
    _mainChannel.invokeMethod<void>(
      Methods.castManagerSendMessage,
      CustomCastMessage(
        message: message,
        messageNamespace: messageNamespace,
      ).toJson(),
    );