copy method
StorageCopyOperation<StorageCopyRequest<StorageItem> , StorageCopyResult<StorageItem> >
copy({
- required StorageItemWithAccessLevel<
StorageItem> source, - required StorageItemWithAccessLevel<
StorageItem> destination, - StorageCopyOptions? options,
Makes a copy of the source
to destination
with optional
StorageCopyOptions, and returns a StorageCopyOperation.
The source
should be readable to the API call originator following
corresponding StorageAccessLevel.
Implementation
StorageCopyOperation copy({
required StorageItemWithAccessLevel<StorageItem> source,
required StorageItemWithAccessLevel<StorageItem> destination,
StorageCopyOptions? options,
}) {
return identifyCall(
StorageCategoryMethod.copy,
() => defaultPlugin.copy(
source: source,
destination: destination,
options: options,
),
);
}