onAbortRequested property
EventStream<OnAbortRequestedEvent>
get
onAbortRequested
Raised when aborting an operation with operationRequestId
is requested. The operation executed with operationRequestId
must be immediately stopped and successCallback
of this
abort request executed. If aborting fails, then
errorCallback
must be called. Note, that callbacks of the
aborted operation must not be called, as they will be ignored. Despite
calling errorCallback
, the request may be forcibly aborted.
Implementation
EventStream<OnAbortRequestedEvent> get onAbortRequested =>
$js.chrome.fileSystemProvider.onAbortRequested.asStream(($c) => (
$js.AbortRequestedOptions options,
$js.ProviderSuccessCallback successCallback,
$js.ProviderErrorCallback errorCallback,
) {
return $c(OnAbortRequestedEvent(
options: AbortRequestedOptions.fromJS(options),
successCallback: () {
//ignore: avoid_dynamic_calls
(successCallback as Function)();
},
errorCallback: (ProviderError error) {
//ignore: avoid_dynamic_calls
(errorCallback as Function)(error.toJS);
},
));
});