emptyBucket method Null safety

Future<String> emptyBucket(
  1. String id
)
inherited

Removes all objects inside a single bucket.

id is the unique identifier of the bucket you would like to empty.

Implementation

Future<String> emptyBucket(String id) async {
  final FetchOptions options = FetchOptions(headers: headers);
  final response =
      await storageFetch.post('$url/bucket/$id/empty', {}, options: options);
  return (response as Map<String, dynamic>)['message'] as String;
}