MessageItem class
A class representing a message item within a group.
This class implements the GroupedMedia interface and represents a specific message item. It contains a ChatMessageModel representing the chat message and an optional map of links.
Properties:
chatMessage
: The chat message associated with this item.linkMap
: An optional map containing links related to the chat message.
The id
property is overridden to provide a unique identifier for the message item.
- Implemented types
Constructors
- MessageItem(ChatMessageModel chatMessage, [Map? linkMap])
- Initializes a new instance of the MessageItem class.
Properties
- chatMessage → ChatMessageModel
-
The chat message associated with this item.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ double
-
The unique identifier of the media item.
getter/setter pairoverride
- linkMap ↔ Map?
-
An optional map containing links related to the chat message.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited