LocalAttachment class

Attachment stored in a NativeFile locally.

Inheritance
Annotations

Constructors

LocalAttachment(NativeFile file, {SendingStatus status = SendingStatus.error})
LocalAttachment.fromJson(Map<String, dynamic> json)
Constructs a LocalAttachment from the provided json.
factory

Properties

cancelToken → CancelToken
CancelToken used to cancel the uploading of this LocalAttachment.
final
downloading → Downloading?
Returns the Downloading of this Attachment, if any.
no setterinherited
downloadStatus → DownloadStatus
Returns DownloadStatus of this Attachment.
no setterinherited
file ↔ NativeFile
NativeFile representing this LocalAttachment.
getter/setter pair
filename ↔ String
Uploaded file's name.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
id ↔ AttachmentId
Unique ID of this Attachment.
getter/setter pairinherited
isCanceled → bool
Indicator whether the upload was canceled.
no setter
isDownloading → bool
Indicates whether downloading of this Attachment is in progress.
no setterinherited
isFile → bool
Indicates whether this Attachment represents a file.
no setterinherited
isMedia → bool
Indicates whether this Attachment represents an image or a video.
no setterinherited
original ↔ StorageFile
Original StorageFile representing this Attachment.
getter/setter pairinherited
progress → Rx<double>
Upload progress of this LocalAttachment.
final
read → Rx<Completer<void>?>
Completer resolving once this LocalAttachment's reading is finished.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → Rx<SendingStatus>
SendingStatus of this LocalAttachment.
final
upload → Rx<Completer<Attachment?>?>
Completer resolving once this LocalAttachment's uploading is finished.
final

Methods

cancelUpload() → void
Cancels the uploading of this LocalAttachment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a Map representing this LocalAttachment.
override
toString() → String
A string representation of this object.
inherited

Operators

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