onWriteFileRequested property
EventStream<OnWriteFileRequestedEvent>
get
onWriteFileRequested
Raised when writing contents to a file opened previously with
openRequestId
is requested.
Implementation
EventStream<OnWriteFileRequestedEvent> get onWriteFileRequested =>
$js.chrome.fileSystemProvider.onWriteFileRequested.asStream(($c) => (
$js.WriteFileRequestedOptions options,
$js.ProviderSuccessCallback successCallback,
$js.ProviderErrorCallback errorCallback,
) {
return $c(OnWriteFileRequestedEvent(
options: WriteFileRequestedOptions.fromJS(options),
successCallback: () {
//ignore: avoid_dynamic_calls
(successCallback as Function)();
},
errorCallback: (ProviderError error) {
//ignore: avoid_dynamic_calls
(errorCallback as Function)(error.toJS);
},
));
});