copyWith method

UploadedFile copyWith({
  1. String? id,
  2. String? name,
  3. String? path,
  4. int? size,
  5. String? extension,
  6. FileType? type,
  7. Uint8List? bytes,
  8. String? mimeType,
  9. DateTime? uploadedAt,
  10. Map<String, dynamic>? metadata,
  11. String? thumbnail,
  12. String? preview,
  13. bool? isUploading,
  14. double? uploadProgress,
  15. String? error,
  16. String? checksum,
  17. List<String>? tags,
  18. Map<String, dynamic>? exifData,
  19. String? virusScanResult,
  20. double? confidenceScore,
  21. List<String>? detectedObjects,
  22. String? transcription,
  23. Duration? duration,
  24. String? cloudUrl,
  25. DateTime? lastModified,
  26. String? uploadedBy,
  27. Map<String, dynamic>? customData,
})

Implementation

UploadedFile copyWith({
  String? id,
  String? name,
  String? path,
  int? size,
  String? extension,
  FileType? type,
  Uint8List? bytes,
  String? mimeType,
  DateTime? uploadedAt,
  Map<String, dynamic>? metadata,
  String? thumbnail,
  String? preview,
  bool? isUploading,
  double? uploadProgress,
  String? error,
  String? checksum,
  List<String>? tags,
  Map<String, dynamic>? exifData,
  String? virusScanResult,
  double? confidenceScore,
  List<String>? detectedObjects,
  String? transcription,
  Duration? duration,
  String? cloudUrl,
  DateTime? lastModified,
  String? uploadedBy,
  Map<String, dynamic>? customData,
}) {
  return UploadedFile(
    id: id ?? this.id,
    name: name ?? this.name,
    path: path ?? this.path,
    size: size ?? this.size,
    extension: extension ?? this.extension,
    type: type ?? this.type,
    bytes: bytes ?? this.bytes,
    mimeType: mimeType ?? this.mimeType,
    uploadedAt: uploadedAt ?? this.uploadedAt,
    metadata: metadata ?? this.metadata,
    thumbnail: thumbnail ?? this.thumbnail,
    preview: preview ?? this.preview,
    isUploading: isUploading ?? this.isUploading,
    uploadProgress: uploadProgress ?? this.uploadProgress,
    error: error ?? this.error,
    checksum: checksum ?? this.checksum,
    tags: tags ?? this.tags,
    exifData: exifData ?? this.exifData,
    virusScanResult: virusScanResult ?? this.virusScanResult,
    confidenceScore: confidenceScore ?? this.confidenceScore,
    detectedObjects: detectedObjects ?? this.detectedObjects,
    transcription: transcription ?? this.transcription,
    duration: duration ?? this.duration,
    cloudUrl: cloudUrl ?? this.cloudUrl,
    lastModified: lastModified ?? this.lastModified,
    uploadedBy: uploadedBy ?? this.uploadedBy,
    customData: customData ?? this.customData,
  );
}