copyWith method
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,
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,
);
}