ConversationListView class

The conversation list view. This widget is used to display the list of conversations.

Inheritance

Constructors

ConversationListView({ConversationListViewController? controller, ConversationItemBuilder? itemBuilder, List<Widget>? beforeWidgets, List<Widget>? afterWidgets, void onSearchTap(List<ConversationItemModel> data)?, String? searchBarHideText, Widget? emptyBackground, String? errorMessage, String? reloadMessage, void onTap(BuildContext context, ConversationItemModel info)?, void onLongPress(BuildContext context, ConversationItemModel info)?, bool enableLongPress = true, bool enableSearchBar = true, bool enablePinHighlight = true, Key? key})
const

Properties

afterWidgets List<Widget>?
The widget list after the list.
final
beforeWidgets List<Widget>?
The widget list before the list.
final
controller ConversationListViewController?
The controller of the list.
final
emptyBackground Widget?
The widget displayed when the list is empty.
final
enableLongPress bool
Whether to enable long press, the default is true.
final
enablePinHighlight bool
Whether to enable the pin highlight, the default is true.
final
enableSearchBar bool
Whether to enable the search bar, the default is true.
final
errorMessage String?
The error message displayed when the list fails to load.
final
hashCode int
The hash code for this object.
no setterinherited
itemBuilder ConversationItemBuilder?
The builder of the list item.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onLongPress → void Function(BuildContext context, ConversationItemModel info)?
Callback when the list item is long pressed.
final
onSearchTap → void Function(List<ConversationItemModel> data)?
Callback when the search bar is clicked, the parameter is the search data source list.
final
onTap → void Function(BuildContext context, ConversationItemModel info)?
Callback when the list item is clicked.
final
reloadMessage String?
The message displayed when the list fails to load.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBarHideText String?
The text displayed when the search bar is hidden.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ConversationListView>
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