onRequest property
EventStream<OnRequestEvent>
get
onRequest
Fired when a request is sent from either an extension process or a content script.
Implementation
EventStream<OnRequestEvent> get onRequest =>
$js.chrome.extension.onRequest.asStream(($c) => (
JSAny? request,
$js_runtime.MessageSender sender,
JSFunction sendResponse,
) {
return $c(OnRequestEvent(
request: request?.dartify(),
sender: MessageSender.fromJS(sender),
sendResponse: sendResponse,
));
}.toJS);