getBucket method
Retrieves the details of an existing Storage bucket.
id
is the unique identifier of the bucket you would like to retrieve.
Implementation
Future<Bucket> getBucket(String id) async {
final FetchOptions options = FetchOptions(headers: headers);
final response =
await storageFetch.get('$url/bucket/$id', options: options);
return Bucket.fromJson(response);
}