sendNativeMessage method

Future<Map> sendNativeMessage(
  1. String application,
  2. Map message
)

Send a single message to a native application. application The name of the native messaging host. message The message that will be passed to the native messaging host.

Implementation

Future<Map> sendNativeMessage(
  String application,
  Map message,
) async {
  var $res =
      await promiseToFuture<JSAny>($js.chrome.runtime.sendNativeMessage(
    application,
    message.jsify()!,
  ));
  return $res.toDartMap();
}