onRemoveWatcherRequested property

EventStream<OnRemoveWatcherRequestedEvent> get onRemoveWatcherRequested

Raised when the watcher should be removed. If an error occurs, then errorCallback must be called.

Implementation

EventStream<OnRemoveWatcherRequestedEvent> get onRemoveWatcherRequested =>
    $js.chrome.fileSystemProvider.onRemoveWatcherRequested.asStream(($c) => (
          $js.RemoveWatcherRequestedOptions options,
          $js.ProviderSuccessCallback successCallback,
          $js.ProviderErrorCallback errorCallback,
        ) {
          return $c(OnRemoveWatcherRequestedEvent(
            options: RemoveWatcherRequestedOptions.fromJS(options),
            successCallback: () {
              //ignore: avoid_dynamic_calls
              (successCallback as Function)();
            },
            errorCallback: (ProviderError error) {
              //ignore: avoid_dynamic_calls
              (errorCallback as Function)(error.toJS);
            },
          ));
        });