GroupedExpansionTile<T extends GroupBase> class
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