onOpenFileRequested property
EventStream<OnOpenFileRequestedEvent>
get
onOpenFileRequested
Raised when opening a file at filePath
is requested. If the
file does not exist, then the operation must fail. Maximum number of
files opened at once can be specified with MountOptions
.
Implementation
EventStream<OnOpenFileRequestedEvent> get onOpenFileRequested =>
$js.chrome.fileSystemProvider.onOpenFileRequested.asStream(($c) => (
$js.OpenFileRequestedOptions options,
$js.ProviderSuccessCallback successCallback,
$js.ProviderErrorCallback errorCallback,
) {
return $c(OnOpenFileRequestedEvent(
options: OpenFileRequestedOptions.fromJS(options),
successCallback: () {
//ignore: avoid_dynamic_calls
(successCallback as Function)();
},
errorCallback: (ProviderError error) {
//ignore: avoid_dynamic_calls
(errorCallback as Function)(error.toJS);
},
));
});