ThreadMessageListView class

The thread message list view. This widget is used to display the list of thread messages.

Inheritance

Constructors

ThreadMessageListView({required ThreadMessagesViewController controller, MessageItemGlobalPositionTapHandler? onItemLongPress, MessageItemGlobalPositionTapHandler? onItemDoubleTap, MessageItemGlobalPositionTapHandler? onItemTap, MessageItemTapHandler? onAvatarTap, MessageItemTapHandler? onAvatarLongPressed, MessageItemTapHandler? onNicknameTap, MessageItemShowHandler? showAvatar, MessageItemShowHandler? showNickname, MessageItemBuilder? itemBuilder, MessageItemBuilder? alertItemBuilder, Widget quoteBuilder(BuildContext context, QuoteModel model)?, void onErrorBtnTap(MessageModel model)?, MessageItemBubbleBuilder? bubbleBuilder, MessageItemBuilder? bubbleContentBuilder, bool? forceLeft, void onReactionItemTap(MessageModel model, MessageReaction reaction)?, MessageItemTapHandler? onReactionInfoTap, MessageItemBuilder? reactionItemsBuilder, MessageItemTapHandler? onThreadItemTap, MessageItemBuilder? threadItemBuilder, AutoScrollController? scrollController, Widget? header, Key? key})
const

Properties

alertItemBuilder MessageItemBuilder?
The builder of the alert item.
final
bubbleBuilder MessageItemBubbleBuilder?
The builder of the bubble.
final
bubbleContentBuilder MessageItemBuilder?
The builder of the bubble content.
final
controller ThreadMessagesViewController
The controller of the list.
final
forceLeft bool?
Whether to force the message to the left.
final
hashCode int
The hash code for this object.
no setterinherited
The header of the list.
final
itemBuilder MessageItemBuilder?
The builder of the list item.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onAvatarLongPressed MessageItemTapHandler?
Callback when the avatar is long pressed.
final
onAvatarTap MessageItemTapHandler?
Callback when the avatar is clicked.
final
onErrorBtnTap → void Function(MessageModel model)?
Callback when the error button is clicked.
final
onItemDoubleTap MessageItemGlobalPositionTapHandler?
Callback when the list item is double clicked.
final
onItemLongPress MessageItemGlobalPositionTapHandler?
Callback when the list item is long pressed.
final
onItemTap MessageItemGlobalPositionTapHandler?
Callback when the list item is clicked.
final
onNicknameTap MessageItemTapHandler?
Callback when the nickname is clicked.
final
onReactionInfoTap MessageItemTapHandler?
Callback when the reaction info is clicked.
final
onReactionItemTap → void Function(MessageModel model, MessageReaction reaction)?
Callback when the reaction item is clicked.
final
onThreadItemTap MessageItemTapHandler?
Callback when the thread item is clicked.
final
quoteBuilder Widget Function(BuildContext context, QuoteModel model)?
The builder of the quote.
final
reactionItemsBuilder MessageItemBuilder?
The builder of the reaction items.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController AutoScrollController?
The controller of the scroll.
final
showAvatar MessageItemShowHandler?
The builder of the show avatar.
final
showNickname MessageItemShowHandler?
The builder of the show nickname.
final
threadItemBuilder MessageItemBuilder?
The builder of the thread item.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ThreadMessageListView>
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, int wrapWidth = 65}) 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