Attachment class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachmentIdStr() String
unique event id associated with this attachment
canRedact() Future<bool>
whether or not this user can redact this item
downloadMedia(ThumbnailSize? thumbSize, String dirPath) Future<OptionString>
if this is a media, hand over the data if thumb size is given, media thumbnail is returned download media (image/audio/video/file/location) to specified path if thumb size is given, media thumbnail is returned if thumb size is not given, media file is returned
drop() → void
Manually drops the object and unregisters the FinalizableHandle.
if this is a link, this contains the URI/Link/URL
mediaPath(bool isThumb) Future<OptionString>
get the path that media (image/audio/video/file) was saved return None when never downloaded
msgContent() MsgContent?
if this is a media, hand over its details
name() String?
display name, either filename or given by the user, if found
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
originServerTs() int
When was this attachment acknowledged by the server
refDetails() RefDetails?
if this is a reference, here are the details
roomIdStr() String
the room this attachment lives in
sender() String
Who send this attachment
toString() String
A string representation of this object.
inherited
typeStr() String
the type of attachment

Operators

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