ConversationItemModel class
- Mixed-in types
Constructors
-
ConversationItemModel({required ChatUIKitProfile profile, Message? lastMessage, int unreadCount = 0, bool noDisturb = false, bool pinned = false, bool hasMention = false, Map<
String, String> ? attributes})
Properties
-
attributes
→ Map<
String, String> ? -
final
- avatarUrl → String?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMention → bool
-
final
- lastMessage → Message?
-
final
- noDisturb → bool
-
final
- pinned → bool
-
final
- profile ↔ ChatUIKitProfile
-
getter/setter pairoverride-getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showName → String
-
no setteroverride
- unreadCount → int
-
final
Methods
-
copyWith(
{ChatUIKitProfile? profile, Message? lastMessage, int? unreadCount, bool? pinned, bool? noDisturb, bool? hasMention, Map< String, String> ? attributes}) → ConversationItemModel -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAttributes(
Map< String, String> attributes) → Future<void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromConversation(
Conversation conversation, ChatUIKitProfile profile) → Future< ConversationItemModel>