Storage class

The Storage service allows you to manage your project files.

Constructors

Storage(Client client)

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

createBucket({required String bucketId, required String name, List<String>? permissions, bool? fileSecurity, bool? enabled, int? maximumFileSize, List<String>? allowedFileExtensions, Compression? compression, bool? encryption, bool? antivirus}) Future<Bucket>
Create bucket
createFile({required String bucketId, required String fileId, required InputFile file, List<String>? permissions, dynamic onProgress(UploadProgress)?}) Future<File>
Create file
deleteBucket({required String bucketId}) Future
Delete bucket
deleteFile({required String bucketId, required String fileId}) Future
Delete File
getBucket({required String bucketId}) Future<Bucket>
Get bucket
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
listBuckets({List<String>? queries, String? search}) Future<BucketList>
List buckets
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
updateBucket({required String bucketId, required String name, List<String>? permissions, bool? fileSecurity, bool? enabled, int? maximumFileSize, List<String>? allowedFileExtensions, Compression? compression, bool? encryption, bool? antivirus}) Future<Bucket>
Update bucket
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