onRequestExternal property

EventStream<OnRequestExternalEvent> get onRequestExternal

Fired when a request is sent from another extension.

Implementation

EventStream<OnRequestExternalEvent> get onRequestExternal =>
    $js.chrome.extension.onRequestExternal.asStream(($c) => (
          JSAny? request,
          $js_runtime.MessageSender sender,
          JSFunction sendResponse,
        ) {
          return $c(OnRequestExternalEvent(
            request: request?.dartify(),
            sender: MessageSender.fromJS(sender),
            sendResponse: sendResponse,
          ));
        });