AquabaseStorage class

File/object storage client for Aquabase.

Upload, download, and manage files organized in buckets.

Constructors

AquabaseStorage({String serverUrl = aquabaseDefaultServerUrl, String? projectId, required String apiKey})

Properties

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 name, bool compression = false, bool public = false}) → Future<void>
Create a new bucket.
deleteBucket(String name) → Future<void>
Delete a bucket and all its files.
deleteFile(String bucket, String path) → Future<void>
Delete a file.
dispose() → void
Release HTTP client resources.
download(String bucket, String path) → Future<Uint8List>
Download a file as raw bytes.
listBuckets() → Future<List<BucketInfo>>
List all buckets in the project.
listFiles(String bucket) → Future<List<FileInfo>>
List all files in a bucket.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
upload(String bucket, String path, Uint8List data, {String contentType = 'application/octet-stream'}) → Future<UploadResult>
Upload a file. Overwrites if it already exists.

Operators

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