onCloseFileRequested property

EventStream<OnCloseFileRequestedEvent> get onCloseFileRequested

Raised when opening a file previously opened with openRequestId is requested to be closed.

Implementation

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