ConversationUtils class
Utility class for conversation-related operations.
Provides helper methods for extracting and formatting conversation data for display in the conversation list item.
Constructors
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
-
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
Static Methods
-
getConversationAvatar(
Conversation conversation) → String? - Gets the conversation avatar URL.
-
getConversationTitle(
Conversation conversation) → String - Gets the conversation title (user name or group name).
-
getLastMessageText(
BuildContext context, BaseMessage? message) → String - Gets the last message text with appropriate formatting.
-
getMessagePrefix(
BuildContext context, BaseMessage message, String? loggedInUserId) → String - Gets the sender name prefix for group messages.
-
getMessageTypeIcon(
BaseMessage? message) → IconData? - Gets the message type icon for display in subtitle.