emptyBucket method Null safety

Future<String> emptyBucket(
  1. String id

Removes all objects inside a single bucket.

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


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;