createBucket method

Future<void> createBucket({
  1. required String name,
  2. bool compression = false,
  3. bool public = false,
})

Create a new bucket.

Implementation

Future<void> createBucket({
  required String name,
  bool compression = false,
  bool public = false,
}) async {
  await _postJson('/storage/buckets', {
    'name': name,
    'compression': compression,
    'public': public,
  });
}