onGetMetadataRequested property
EventStream<OnGetMetadataRequestedEvent>
get
onGetMetadataRequested
Raised when metadata of a file or a directory at entryPath
is requested. The metadata must be returned with the
successCallback
call. In case of an error,
errorCallback
must be called.
Implementation
EventStream<OnGetMetadataRequestedEvent> get onGetMetadataRequested =>
$js.chrome.fileSystemProvider.onGetMetadataRequested.asStream(($c) => (
$js.GetMetadataRequestedOptions options,
$js.MetadataCallback successCallback,
$js.ProviderErrorCallback errorCallback,
) {
return $c(OnGetMetadataRequestedEvent(
options: GetMetadataRequestedOptions.fromJS(options),
successCallback: (EntryMetadata metadata) {
//ignore: avoid_dynamic_calls
(successCallback as Function)(metadata.toJS);
},
errorCallback: (ProviderError error) {
//ignore: avoid_dynamic_calls
(errorCallback as Function)(error.toJS);
},
));
}.toJS);