ImageAttachment class

Image Attachment.

Inheritance
Annotations

Constructors

ImageAttachment({required AttachmentId id, required StorageFile original, required String filename, required ImageFile big, required ImageFile medium, required ImageFile small})
ImageAttachment.fromJson(Map<String, dynamic> json)
Constructs a ImageAttachment from the provided json.
factory

Properties

big ImageFile
Big view ImageFile of this ImageAttachment, scaled proportionally to 800px of its maximum dimension (either width or height).
getter/setter pair
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
medium ImageFile
Medium view ImageFile of this ImageAttachment, scaled proportionally to 200px of its maximum dimension (either width or height).
getter/setter pair
original StorageFile
Original StorageFile representing this Attachment.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
small ImageFile
Small view ImageFile of this ImageAttachment, scaled proportionally to 30px of its maximum dimension (either width or height).
getter/setter pair

Methods

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

Operators

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