UploadedFile class

Represents a chosen file in FileUpload.

Constructors

UploadedFile({required String name, required int sizeInBytes, double progress = 1.0, String? error, String? id})
const

Properties

error → String?
Optional error message.
final
extension → String
File extension without dot.
no setter
formattedSize → String
Formatted human-readable file size (e.g. "2.4 MB").
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String?
Optional unique identifier.
final
name → String
File display name.
final
progress → double
Upload progress from 0.0 to 1.0.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeInBytes → int
File size in bytes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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