FileAttachment class

Plain file Attachment.

Inheritance
Annotations

Constructors

FileAttachment({required AttachmentId id, required StorageFile original, required String filename})
FileAttachment.fromJson(Map<String, dynamic> json)
Constructs a FileAttachment 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
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
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
isVideo → bool
Indicates whether this FileAttachment represents a video.
no setter
original ↔ StorageFile
Original StorageFile representing this Attachment.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelDownload() → void
Cancels the downloading of this FileAttachment.
download() → Future<File?>?
Downloads this FileAttachment.
init() → Future<void>
Initializes this FileAttachment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → Future<bool>
Opens this FileAttachment, if downloaded, or otherwise returns false.
toJson() → Map<String, dynamic>
Returns a Map representing this FileAttachment.
override
toString() → String
A string representation of this object.
override

Operators

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