createBucket abstract method

Future createBucket(
  1. String bucketName, {
  2. PredefinedAcl? predefinedAcl,
  3. Acl? acl,
})

Create a cloud storage bucket.

Creates a cloud storage bucket named bucketName.

The bucket ACL can be set by passing predefinedAcl or acl. If both are passed the entries from acl with be followed by the expansion of predefinedAcl.

Returns a Future which completes when the bucket has been created.

Implementation

Future createBucket(String bucketName,
    {PredefinedAcl? predefinedAcl, Acl? acl});