GroupedExpansionTile<T extends GroupBase> class

Inheritance

Constructors

GroupedExpansionTile({required Iterable<T> data, required WidgetBuilder<T> builder, EdgeInsetsGeometry padding = const EdgeInsets.all(5), ListTileControlAffinity controlAffinity = ListTileControlAffinity.leading, double childIndent = 20.0, dynamic onExpansionChanged(bool expanded, Parent<T> parent, int depth)?, bool initiallyExpanded = true, Border? initialBorder, Border? highlightedBorder, dynamic onAccept(Parent<T> source, T? destination)?, bool draggable = false, Widget topParent = const Text("Top Parent"), Key? key})
const

Properties

builder WidgetBuilder<T>
The primary content of the list item. Typically a Text widget.
final
childIndent double
Indent value for child item. The bigger this number is, the more space at left side is occupied.
final
controlAffinity ListTileControlAffinity
Typically used to force the expansion arrow icon to the tile's leading or trailing edge.
final
data Iterable<T>
Data to be shown on the widget.
final
draggable bool
Enable dragging. This value needs to be set to true when onAccept is specified.
final
hashCode int
The hash code for this object.
no setterinherited
highlightedBorder Border?
Assigned this value to one of borders when a dragged piece is over a widget.
final
initialBorder Border?
Assigned this value to one of borders when a dragged piece leaves a target, is accepted or rejected.
final
initiallyExpanded bool
Whether the expansion tile is initially expanded or not
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onAccept → (dynamic Function(Parent<T> source, T? destination)?)
Called when an acceptable piece of source data was dropped over this destination. draggable must be set to true. Null destination means the source item wants to be top parent. source and destination are definitely different group.
final
onExpansionChanged → (dynamic Function(bool expanded, Parent<T> parent, int depth)?)
Called when expansion tile is opened/closed.
final
padding EdgeInsetsGeometry
Padding to be applied to each expansion tiles.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topParent Widget
Top parent widget which appears at the bottom when drag gesture starts.
final

Methods

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