DtoChatMessage class

Persisted in storage ChatMessage's value.

Inheritance
Annotations

Constructors

DtoChatMessage(ChatItem value, ChatItemsCursor? cursor, ChatItemVersion ver, List<ChatItemsCursor?>? repliesToCursors)
DtoChatMessage.fromJson(Map<String, dynamic> json)
Constructs a DtoChatMessage from the provided json.
factory
DtoChatMessage.sending({required ChatId chatId, required UserId me, ChatMessageText? text, List<ChatItemQuote> repliesTo = const [], List<Attachment> attachments = const [], ChatItemId? existingId, PreciseDateTime? existingDateTime})
Constructs a DtoChatMessage in a SendingStatus.sending state.
factory

Properties

cursor ChatItemsCursor?
Cursor of a ChatItem this DtoChatItem represents.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
repliesToCursors List<ChatItemsCursor?>?
Cursors of the ChatMessage.repliesTo list.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ChatItem
Persisted ChatItem model.
getter/setter pairinherited
ver ChatItemVersion
Version of a ChatItem's state.
finalinherited

Methods

copyWith({ChatItem? value, ChatItemsCursor? cursor, ChatItemVersion? ver, List<ChatItemsCursor?>? repliesToCursors}) DtoChatMessage
Returns a copy of this DtoChatMessage with the provided parameters.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a Map representing this DtoChatMessage.
override
toString() String
A string representation of this object.
inherited

Operators

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