LocalAttachment class
Attachment stored in a NativeFile locally.
- Inheritance
-
- Object
- Attachment
- LocalAttachment
- Annotations
Constructors
- LocalAttachment(NativeFile file, {SendingStatus status = SendingStatus.error})
-
LocalAttachment.fromJson(Map<
String, dynamic> json) -
Constructs a LocalAttachment from the provided
json
.factory
Properties
- 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
- isDownloading → bool
-
Indicates whether downloading of this Attachment is in progress.
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
-
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