GroupListView class

The group list view. This widget is used to display the list of groups.

Inheritance

Constructors

GroupListView({GroupListViewController? controller, ChatUIKitGroupItemBuilder? itemBuilder, List<Widget>? beforeWidgets, List<Widget>? afterWidgets, void onSearchTap(List<GroupItemModel> data)?, String? searchBarHideText, Widget? emptyBackground, String? errorMessage, String? reloadMessage, void onTap(BuildContext context, GroupItemModel model)?, void onLongPress(BuildContext context, GroupItemModel model)?, bool enableSearch = false, Key? key})
const

Properties

afterWidgets List<Widget>?
The widget list displayed after the list.
final
beforeWidgets List<Widget>?
The widget list displayed before the list.
final
controller GroupListViewController?
The controller of the list.
final
emptyBackground Widget?
The widget displayed when the list is empty.
final
enableSearch bool
Whether to enable search bar, the default is false.
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 ChatUIKitGroupItemBuilder?
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, GroupItemModel model)?
Callback when the list item is long pressed.
final
onSearchTap → void Function(List<GroupItemModel> data)?
Callback when the search bar is clicked, the parameter is the search data source list.
final
onTap → void Function(BuildContext context, GroupItemModel model)?
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<GroupListView>
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