AttachmentsManager class

Reference to the attachments section of a particular item

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

attachments() Future<FfiListAttachment>
Get the list of attachments (in arrival order)
attachmentsCount() int
How many attachments does this item have
canEditAttachments() bool
Whether or not the current user can post, edit and delete attachments in this manager
contentDraft(MsgDraft baseDraft) Future<AttachmentDraft>
create attachment for given msg draft
drop() → void
Manually drops the object and unregisters the FinalizableHandle.
hasAttachments() bool
Does this item have any attachments?
linkDraft(String url, String? name) Future<AttachmentDraft>
create attachment for given link draft
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redact(String attachmentId, String? reason, String? txnId) Future<EventId>
redact attachment
referenceDraft(RefDetails details) Future<AttachmentDraft>
create attachment for given ref_details
reload() Future<AttachmentsManager>
inform about the changes to this manager
roomIdStr() String
the room this attachments manager lives in
subscribeStream() Stream<bool>
subscribe to the changes of this model key
toString() String
A string representation of this object.
inherited

Operators

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