GroupedListView<T, E> class

A groupable list of widgets, similar to ListView, except that the items can be sectioned into groups.

Inheritance

Constructors

GroupedListView({Key? key, required List<T> items, required GroupedWidgetBuilder<T> itemBuilder, required E groupBy(T item), Widget groupHeaderBuilder(E value)?, GroupedWidgetBuilder<T>? groupSeparatorBuilder, GroupedWidgetBuilder<T>? separatorBuilder, Clip clipBehavior = Clip.hardEdge, ScrollPhysics? physics, bool shrinkWrap = false})
A groupable list of widgets, similar to ListView, except that the items can be sectioned into groups.
const

Properties

clipBehavior Clip
The content will be clipped (or not) according to this option.
final
groupBy → E Function(T item)
Defines which items are grouped together.
final
groupHeaderBuilder → (Widget Function(E value)?)
Called to build group headers.
final
groupSeparatorBuilder GroupedWidgetBuilder<T>?
Called to build group separators.
final
hashCode int
The hash code for this object.
no setterinherited
itemBuilder GroupedWidgetBuilder<T>
Called to build the items.
final
items List<T>
The items of which the itemBuilder produces.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
physics ScrollPhysics?
How the scroll view should respond to user input.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separatorBuilder GroupedWidgetBuilder<T>?
Called to build list separators.
final
shrinkWrap bool
Whether the extent of the scroll view should be determined by the contents being viewed.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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