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: () {
              successCallback.callAsFunction(
                null,
              );
            },
            errorCallback: (ProviderError error) {
              errorCallback.callAsFunction(null, error.toJS);
            },
          ));
        }.toJS);