sendMessage static method

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

Send a message on behalf of the user to a conversation channel tagged with the provided tag

Pass the topic name in tag and the message to be sent in message

Implementation

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