StorageFileApi class

Constructors

StorageFileApi(String url, Map<String, String> headers, String? bucketId, int _retryAttempts, Fetch _storageFetch)
const

Properties

bucketId String?
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

copy(String fromPath, String toPath) Future<String>
Copies an existing file.
createSignedUploadUrl(String path) Future<SignedUploadURLResponse>
Creates a signed upload URL.
createSignedUrl(String path, int expiresIn, {TransformOptions? transform}) Future<String>
Create signed URL to download file without requiring permissions. This URL can be valid for a set number of seconds.
createSignedUrls(List<String> paths, int expiresIn) Future<List<SignedUrl>>
Create signed URLs to download files without requiring permissions. These URLs can be valid for a set number of seconds.
download(String path, {TransformOptions? transform}) Future<Uint8List>
Downloads a file.
getPublicUrl(String path, {TransformOptions? transform}) String
Retrieve URLs for assets in public buckets
list({String? path, SearchOptions searchOptions = const SearchOptions()}) Future<List<FileObject>>
Lists all the files within a bucket.
move(String fromPath, String toPath) Future<String>
Moves an existing file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(List<String> paths) Future<List<FileObject>>
Deletes files within the same bucket
toString() String
A string representation of this object.
inherited
update(String path, File file, {FileOptions fileOptions = const FileOptions(), int? retryAttempts, StorageRetryController? retryController}) Future<String>
Replaces an existing file at the specified path with a new one.
updateBinary(String path, Uint8List data, {FileOptions fileOptions = const FileOptions(), int? retryAttempts, StorageRetryController? retryController}) Future<String>
Replaces an existing file at the specified path with a new one. Can be used on the web.
upload(String path, File file, {FileOptions fileOptions = const FileOptions(), int? retryAttempts, StorageRetryController? retryController}) Future<String>
Uploads a file to an existing bucket.
uploadBinary(String path, Uint8List data, {FileOptions fileOptions = const FileOptions(), int? retryAttempts, StorageRetryController? retryController}) Future<String>
Uploads a binary file to an existing bucket. Can be used on the web.
uploadBinaryToSignedUrl(String path, String token, Uint8List data, [FileOptions fileOptions = const FileOptions(), int? retryAttempts, StorageRetryController? retryController]) Future<String>
Upload a binary file with a token generated from createUploadSignedUrl.
uploadToSignedUrl(String path, String token, File file, [FileOptions fileOptions = const FileOptions(), int? retryAttempts, StorageRetryController? retryController]) Future<String>
Upload a file with a token generated from createUploadSignedUrl.

Operators

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