TIMUIKitHistoryMessageListItem class

Inheritance

Constructors

TIMUIKitHistoryMessageListItem({Key? key, required V2TimMessage message, @Deprecated("Nickname will not show in one-to-one chat, if you tend to control it in group chat, please use `isShowSelfNameInGroup` and `isShowOthersNameInGroup` from `config: TIMUIKitChatConfig` instead") bool showNickName = false, Function? onScrollToIndex, Function? onScrollToIndexBegin, void onTapForOthersPortrait(String userID, TapDownDetails tapDetails)?, MessageItemBuilder? messageItemBuilder, dynamic onLongPressForOthersHeadPortrait(String? userId, String? nickName)?, bool showAvatar = true, bool showMessageSending = true, bool showMessageReadRecipt = true, bool allowLongPress = true, ToolTipsConfig? toolTipsConfig, dynamic onLongPress(BuildContext context, V2TimMessage message)?, bool showGroupMessageReadRecipt = false, bool allowAtUserWhenReply = true, bool allowAvatarTap = true, Widget userAvatarBuilder(BuildContext context, V2TimMessage message)?, MessageThemeData? themeData, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? textPadding, Widget topRowBuilder(BuildContext context, V2TimMessage message)?, bool? isUseMessageReaction, Widget bottomRowBuilder(BuildContext context, V2TimMessage message)?, bool isUseDefaultEmoji = false, List<CustomEmojiFaceData> customEmojiStickerList = const [], TIMUIKitInputTextFieldController? textFieldController, void onSecondaryTapForOthersPortrait(String userID, TapDownDetails tapDetails)?, V2TimGroupMemberFullInfo? groupMemberInfo, Widget? customMessageHoverBarOnDesktop(V2TimMessage message)?})
const

Properties

allowAtUserWhenReply bool
Auto mention user when send reply message
final
allowAvatarTap bool
allow avatar can tap
final
allowLongPress bool
allow message can long press
final
bottomRowBuilder → (Widget Function(BuildContext context, V2TimMessage message)?)
builder for bottom raw which under message content
final
customEmojiStickerList List<CustomEmojiFaceData>
final
customMessageHoverBarOnDesktop → (Widget? Function(V2TimMessage message)?)
This parameter accepts a custom widget to be displayed when the mouse hovers over a message, replacing the default message hover action bar. Applicable only on desktop platforms. If provided, the default message action functionality will appear in the right-click context menu instead.
final
groupMemberInfo V2TimGroupMemberFullInfo?
final
hashCode int
The hash code for this object.
no setterinherited
isUseDefaultEmoji bool
Whether to use the default emoji
final
isUseMessageReaction bool?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
message V2TimMessage
message instance
final
messageItemBuilder MessageItemBuilder?
message item builder, works for customize all message types and row layout.
final
onLongPress → (dynamic Function(BuildContext context, V2TimMessage message)?)
on message long press callback
final
onLongPressForOthersHeadPortrait → (dynamic Function(String? userId, String? nickName)?)
the callback for long press event, except myself avatar
final
onScrollToIndex Function?
the function use for reply message, when click replied message can scroll to it.
final
onScrollToIndexBegin Function?
message is too long should scroll this message to begin so that the tool tips panel can show correctly.
final
onSecondaryTapForOthersPortrait → (void Function(String userID, TapDownDetails tapDetails)?)
secondary tap remote user avatar callback function
final
onTapForOthersPortrait → (void Function(String userID, TapDownDetails tapDetails)?)
tap remote user avatar callback function
final
padding EdgeInsetsGeometry?
padding for each message item
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAvatar bool
Control avatar hide or show
final
showGroupMessageReadRecipt bool
message read status in group
final
showMessageReadRecipt bool
message is read status
final
showMessageSending bool
message sending status
final
showNickName bool
allow show user nick name
final
textFieldController TIMUIKitInputTextFieldController?
The controller for text field.
final
textPadding EdgeInsetsGeometry?
padding for text message、sound message、reply message
final
themeData MessageThemeData?
theme info for message and avatar
final
toolTipsConfig ToolTipsConfig?
tool tips panel configuration, long press message will show tool tips panel
final
topRowBuilder → (Widget Function(BuildContext context, V2TimMessage message)?)
builder for nick name row
final
userAvatarBuilder → (Widget Function(BuildContext context, V2TimMessage message)?)
avatar builder
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited