onAddWatcherRequested property
EventStream<OnAddWatcherRequestedEvent>
get
onAddWatcherRequested
Raised when setting a new directory watcher is requested. If an error
occurs, then errorCallback
must be called.
Implementation
EventStream<OnAddWatcherRequestedEvent> get onAddWatcherRequested =>
$js.chrome.fileSystemProvider.onAddWatcherRequested.asStream(($c) => (
$js.AddWatcherRequestedOptions options,
$js.ProviderSuccessCallback successCallback,
$js.ProviderErrorCallback errorCallback,
) {
return $c(OnAddWatcherRequestedEvent(
options: AddWatcherRequestedOptions.fromJS(options),
successCallback: () {
//ignore: avoid_dynamic_calls
(successCallback as Function)();
},
errorCallback: (ProviderError error) {
//ignore: avoid_dynamic_calls
(errorCallback as Function)(error.toJS);
},
));
});