Future<String> sendToHost(String channel, [ String message = '' ])

Send a message to the host application.

Source

static Future<String> sendToHost(String channel, [String message = '']) {
  return PlatformMessages.sendString(channel, message);
}