PendingUpload class

The upload behind a pending attachment message.

Annotations

Constructors

PendingUpload({required UploadSource source, double progress = 0, String? uploadedId})
Creates the upload state.
const

Properties

done → bool
The bytes reached the server.
no setter
hashCode → int
The hash code for this object.
no setterinherited
progress → double
0..1 while the bytes go out.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → UploadSource
What is being sent (kept for the preview and for retries).
final
uploadedId → String?
The server's file id once uploaded.
final

Methods

copyWith({double? progress, String? uploadedId}) → PendingUpload
Copies with some fields replaced.
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