getBucket()
Retrieves the details of an existing Storage bucket.
1final Bucket bucket = await supabase 2 .storage 3 .getBucket('avatars');
Parameters#
idrequired
string
The unique identifier of the bucket you would like to retrieve.
Notes#
- Policy permissions required:
buckets
permissions:select
objects
permissions: none
Examples#
Get bucket#
1final Bucket bucket = await supabase 2 .storage 3 .getBucket('avatars');