SupabaseStorageClient class
Constructors
-
SupabaseStorageClient(String url, Map<
String, String> headers, {Client? httpClient, int retryAttempts = 0}) -
To create a SupabaseStorageClient, you need to provide an
url
andheaders
.
Properties
Methods
-
createBucket(
String id, [BucketOptions bucketOptions = const BucketOptions(public: false)]) → Future< String> -
Creates a new Storage bucket
inherited
-
deleteBucket(
String id) → Future< String> -
Deletes an existing bucket. A bucket can't be deleted with existing
objects inside it. You must first clear the bucket using
emptyBucket
.inherited -
emptyBucket(
String id) → Future< String> -
Removes all objects inside a single bucket.
inherited
-
from(
String id) → StorageFileApi - Perform file operation in a bucket.
-
getBucket(
String id) → Future< Bucket> -
Retrieves the details of an existing Storage bucket.
inherited
-
listBuckets(
) → Future< List< Bucket> > -
Retrieves the details of all Storage buckets within an existing project.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAuth(
String jwt) → void -
toString(
) → String -
A string representation of this object.
inherited
-
updateBucket(
String id, BucketOptions bucketOptions) → Future< String> -
Updates a new Storage bucket
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited