StorageBucketModel constructor

StorageBucketModel(
  1. String id, {
  2. String? parentFolderPath,
  3. int? maxAllowedSize,
  4. String? subRef,
  5. String? creatorId,
})

Implementation

StorageBucketModel(
  this.id, {
  String? parentFolderPath,
  this.maxAllowedSize,
  this.subRef,
  this.creatorId,
}) {
  _controller = BucketController(this);
  _parentPath = parentFolderPath ?? defaultBucketsContainer;
  _parentPath = _parentPath.replaceAll('//', '/');
  _parentPath = _parentPath.replaceAll('\\', '/');
  _parentPath = _parentPath.strip('/');
}