sendMessage abstract method

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

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

Future<void> sendMessage({
  required String message,
  String? messageNamespace,
});