TargetFilesClient class

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
target → FilesTarget
final

Methods

copy(FileLocation source, String destination, {bool overwrite = false}) → Future<void>
delete(String path, {bool recursive = false}) → Future<void>
download(String path) → Future<Uint8List>
Buffers the complete file. Use downloadStream for large files.
downloadStream(String path, {Future<void>? abortTrigger}) → Stream<List<int>>
exists(String path) → Future<bool>
list({String path = ''}) → Stream<StorageEntry>
listPage({String path = '', String? continuationToken, int limit = 1000}) → Future<FilesPage>
location(String path) → FileLocation
mkdir(String path) → Future<void>
move(FileLocation source, String destination, {bool overwrite = false}) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
permissions(String path) → Future<FilePermissions>
presign(String path, {PresignedFileMethod method = PresignedFileMethod.get, int expiresIn = 3600}) → Future<PresignedFileUrl>
stat(String path) → Future<FileMetadata>
toString() → String
A string representation of this object.
inherited
upload(String path, List<int> data, {String contentType = 'application/octet-stream', bool overwrite = true, Future<void>? abortTrigger}) → Future<void>
uploadStream(String path, Stream<List<int>> data, {int? contentLength, String contentType = 'application/octet-stream', bool overwrite = true, Future<void>? abortTrigger}) → Future<void>
Streams on transports that support it; browser transports may buffer uploads.

Operators

operator ==(Object other) → bool
The equality operator.
inherited