onCopyEntryRequested property

EventStream<OnCopyEntryRequestedEvent> get onCopyEntryRequested

Raised when copying an entry (recursively if a directory) is requested. If an error occurs, then errorCallback must be called.

Implementation

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