setBucket method

void setBucket(
  1. dynamic bucket
)

set bucket name

Implementation

void setBucket(bucket) {
  MinioInvalidBucketNameError.check(bucket);
  policy['conditions'].add(['eq', r'$bucket', bucket]);
  formData['bucket'] = bucket;
}