ChatMessage class
Message in a Chat.
- Inheritance
- Available extensions
- Annotations
Constructors
-
ChatMessage(ChatItemId id, ChatId chatId, User author, PreciseDateTime at, {SendingStatus? status, List<
ChatItemQuote> repliesTo = const [], ChatMessageText? text, PreciseDateTime? editedAt, List<Attachment> attachments = const []}) -
ChatMessage.fromJson(Map<
String, dynamic> json) -
Constructs a ChatMessage from the provided
json
.factory
Properties
- at ↔ PreciseDateTime
-
PreciseDateTime when this ChatItem was posted.
getter/setter pairinherited
-
attachments
↔ List<
Attachment> -
Attachments of this ChatMessage.
getter/setter pair
-
User who posted this ChatItem.
finalinherited
- chatId ↔ ChatId
-
ID of the Chat this ChatItem was posted in.
getter/setter pairinherited
- editedAt ↔ PreciseDateTime?
-
PreciseDateTime when this ChatMessage was edited.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → ChatItemId
-
Unique ID of this ChatItem.
finalinherited
- key → ChatItemKey
-
Returns combined at and id unique identifier of this ChatItem.
no setterinherited
-
repliesTo
↔ List<
ChatItemQuote> -
ChatItemQuotes of the ChatItems this ChatMessage replies to.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
→ Rx<
SendingStatus> -
SendingStatus of this ChatItem.
finalinherited
- text ↔ ChatMessageText?
-
Text of this ChatMessage.
getter/setter pair
Methods
-
isEditable(
Chat chat, UserId me) → bool -
Available on ChatItem, provided by the IsChatItemEditable extension
Indicates whether this ChatItem is editable. -
isEquals(
ChatMessage other) → bool -
Indicates whether the
other
message shares the same text, repliesTo, author, chatId and attachments as this ChatMessage. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a Map representing this ChatMessage.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override