BucketFile constructor

BucketFile({
  1. required int id,
  2. required String key,
  3. String? description,
  4. List<String>? tags,
  5. required int bucketId,
  6. String? type,
  7. required int size,
  8. required DateTime createdAt,
})

Creates a new BucketFile instance.

Parameters

  • id: The unique file identifier
  • key: The file key/path within the bucket
  • description: Optional file description
  • tags: Optional list of tags
  • bucketId: ID of the containing bucket
  • type: Optional MIME type
  • size: File size in bytes
  • createdAt: Creation timestamp

Implementation

BucketFile({
  required this.id,
  required this.key,
  this.description,
  this.tags,
  required this.bucketId,
  this.type,
  required this.size,
  required this.createdAt,
});