Storage class

The Storage service allows you to manage your project files.

Constructors

Storage(Client client)
Initializes a Storage service

Properties

client Client
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createFile({required String bucketId, required String fileId, required InputFile file, List<String>? permissions, dynamic onProgress(UploadProgress)?}) Future<File>
Create file
deleteFile({required String bucketId, required String fileId}) Future
Delete File
getFile({required String bucketId, required String fileId}) Future<File>
Get file
getFileDownload({required String bucketId, required String fileId}) Future<Uint8List>
Get file for download
getFilePreview({required String bucketId, required String fileId, int? width, int? height, ImageGravity? gravity, int? quality, int? borderWidth, String? borderColor, int? borderRadius, double? opacity, int? rotation, String? background, ImageFormat? output}) Future<Uint8List>
Get file preview
getFileView({required String bucketId, required String fileId}) Future<Uint8List>
Get file for view
listFiles({required String bucketId, List<String>? queries, String? search}) Future<FileList>
List files
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateFile({required String bucketId, required String fileId, String? name, List<String>? permissions}) Future<File>
Update file

Operators

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