File constructor

File(
  1. String? bucketUuid,
  2. String? directoryUuid,
  3. String fileUuid,
  4. Map<String, dynamic>? data,
)

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

Implementation

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