copyWith method

Storage copyWith({
  1. String? uuid,
  2. String? contentType,
  3. String? type,
  4. DateTime? createAt,
  5. int? usageCount,
})

Implementation

Storage copyWith({
  String? uuid,
  String? contentType,
  String? type,
  DateTime? createAt,
  int? usageCount,
}) {
  return Storage(
    uuid: uuid ?? this.uuid,
    contentType: contentType ?? this.contentType,
    type: type ?? this.type,
    createAt: createAt ?? this.createAt,
    usageCount: usageCount ?? this.usageCount,
  );
}