sendMessage method

void sendMessage(
  1. String namespace,
  2. String message
)

Send a string message to the Cast Receiver using the input namespace

Implementation

void sendMessage(String namespace, String message) {
  final castMessage = CastMessage();
  castMessage.namespace = namespace;
  castMessage.message = message;
  _hostApi.sendMessage(castMessage);
}