sendNativeMessage method
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 $js.chrome.runtime
.sendNativeMessage(
application,
message.jsify()!,
)
.toDart;
return $res.toDartMap();
}