UploadedFile class

Constructors

UploadedFile({String? id, required String name, required String path, required int size, required String extension, required FileType type, Uint8List? bytes, String? mimeType, DateTime? uploadedAt, Map<String, dynamic>? metadata, String? thumbnail, String? preview, bool isUploading = false, double uploadProgress = 0.0, 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})

Properties

bytes → Uint8List?
final
checksum → String?
final
cloudUrl → String?
final
confidenceScore → double?
final
customData → Map<String, dynamic>?
final
detectedObjects → List<String>?
final
duration → Duration?
final
error → String?
final
exifData → Map<String, dynamic>?
final
extension → String
final
formattedSize → String
no setter
hasAI → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
isArchive → bool
no setter
isAudio → bool
no setter
isCode → bool
no setter
isDocument → bool
no setter
isImage → bool
no setter
isPdf → bool
no setter
isPresentation → bool
no setter
isSecure → bool
no setter
isSpreadsheet → bool
no setter
isUploading → bool
final
isVideo → bool
no setter
lastModified → DateTime?
final
metadata → Map<String, dynamic>?
final
mimeType → String?
final
name → String
final
path → String
final
preview → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
final
tags → List<String>?
final
thumbnail → String?
final
transcription → String?
final
type → FileType
final
uploadedAt → DateTime
final
uploadedBy → String?
final
uploadProgress → double
final
virusScanResult → String?
final

Methods

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}) → UploadedFile
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited