StorageBucket constructor

StorageBucket(
  1. String uuid, {
  2. Map<String, dynamic>? data,
})

Constructor which should only be called via Storage class. @param uuid Unique identifier of the bucket. @param data Data to populate storage bucket with.

Implementation

StorageBucket(super.uuid, {Map<String, dynamic>? data}) {
  apiPrefix = '/storage/buckets/$uuid';
  populate(data);
}