ConversationItemConfig class

Constructors

ConversationItemConfig.new({Color itemTitleColor = CommonColors.color_333333, double itemTitleSize = 16, Color itemContentColor = CommonColors.color_999999, double itemContentSize = 13, Color itemDateColor = CommonColors.color_cccccc, Color itemAitTextColor = Colors.red, double itemDateSize = 12, double avatarCornerRadius = 21, ConversationItemClick? itemClick, ConversationItemLongClick? itemLongClick, ConversationAvatarClick? avatarClick, ConversationAvatarLongClick? avatarLongClick, Comparator<ConversationInfo>? conversationComparator, ConversationItemBuilder? customItemBuilder, ConversationLastMessageContentBuilder? lastMessageContentBuilder, bool clearMessageWhenDeleteSession = false})
const

Properties

avatarClick ConversationAvatarClick?
final
avatarCornerRadius double
会话列表中会话头像的圆角,0 代表方形,21 为圆形。
final
avatarLongClick ConversationAvatarLongClick?
final
clearMessageWhenDeleteSession bool
是否在删除会话的时候同步删除消息
final
conversationComparator Comparator<ConversationInfo>?
会话列表排序自定义规则
final
customItemBuilder ConversationItemBuilder?
自定义会话item组件,会替换掉默认的item
final
hashCode int
The hash code for this object.
no setterinherited
itemAitTextColor Color
会话@标记字体颜色
final
itemClick ConversationItemClick?
会话列表点击事件,包括单击和长按事件
final
itemContentColor Color
会话消息缩略内容的字体颜色
final
itemContentSize double
会话消息缩略内容的字体大小
final
itemDateColor Color
会话时间的字体颜色
final
itemDateSize double
会话时间的字体大小
final
itemLongClick ConversationItemLongClick?
final
itemTitleColor Color
会话名称的字体颜色
final
itemTitleSize double
会话名称的字体大小
final
lastMessageContentBuilder ConversationLastMessageContentBuilder?
自定义会话最后一条消息内容
final
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