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