Directory constructor

Directory(
  1. String? bucketUuid,
  2. String directoryUuid, {
  3. Map<String, dynamic>? data,
})

Constructor which should only be called via StorageBucket class. @param bucketUuid Unique identifier of the directory's bucket. @param directoryUuid Unique identifier of the directory. @param data Data to populate the directory with.

Implementation

Directory(
  this.bucketUuid,
  super.directoryUuid, {
  Map<String, dynamic>? data,
}) {
  bucketUuid = bucketUuid;
  apiPrefix = '/storage/buckets/$bucketUuid';
  populate(data);
}