sendMessage static method

void sendMessage(
  1. Map<String, dynamic> message
)

send message to watch the message must conform to https://api.flutter.dev/flutter/services/StandardMessageCodec-class.html

android consideration: message will be converted to a json string and send on a channel name "MessageChannel"

Implementation

static void sendMessage(Map<String, dynamic> message) async {
  await _channel.invokeMethod('sendMessage', message);
}