TreeNodeUi class
Constructors
- TreeNodeUi.new({Widget? title, Widget? leading, Widget? subtitle, Color? backgroundColor, Color? collapsedBackgroundColor, Widget? trailing, bool? showTrailingIcon, EdgeInsetsGeometry? tilePadding, Alignment? expandedAlignment, CrossAxisAlignment? expandedCrossAxisAlignment, EdgeInsetsGeometry? childrenPadding, Color? iconColor, Color? collapsedIconColor, Color? textColor, Color? collapsedTextColor, ShapeBorder? shape, ShapeBorder? collapsedShape, Clip? clipBehavior, bool? dense, VisualDensity? visualDensity, double? minTileHeight, AnimationStyle? expansionAnimationStyle})
Properties
- backgroundColor → Color?
-
The color to display behind the sublist when expanded.
final
- childrenPadding → EdgeInsetsGeometry?
-
Specifies padding for
children
.final - clipBehavior → Clip?
-
The content will be clipped (or not) according to this option.
final
- collapsedBackgroundColor → Color?
-
When not null, defines the background color of tile when the sublist is collapsed.
final
- collapsedIconColor → Color?
-
The icon color of tile's expansion arrow icon when the sublist is collapsed.
final
- collapsedShape → ShapeBorder?
-
The tile's border shape when the sublist is collapsed.
final
- collapsedTextColor → Color?
-
The color of the tile's titles when the sublist is collapsed.
final
- dense → bool?
-
Whether this list tile is part of a vertically dense list.
final
- expandedAlignment → Alignment?
-
Specifies the alignment of
children
, which are arranged in a column when the tile is expanded.final - expandedCrossAxisAlignment → CrossAxisAlignment?
-
Specifies the alignment of each child within
children
when the tile is expanded.final - expansionAnimationStyle → AnimationStyle?
-
Used to override the expansion animation curve and duration.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconColor → Color?
-
The icon color of tile's expansion arrow icon when the sublist is expanded.
final
- leading → Widget?
-
A widget to display before the title.
final
- minTileHeight → double?
-
The minimum height allocated for the ListTile widget.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ShapeBorder?
-
The tile's border shape when the sublist is expanded.
final
- showTrailingIcon → bool?
-
Specifies if the ExpansionTile should build a default trailing icon if trailing is null.
final
- subtitle → Widget?
-
Additional content displayed below the title.
final
- textColor → Color?
-
The color of the tile's titles when the sublist is expanded.
final
- tilePadding → EdgeInsetsGeometry?
-
Specifies padding for the ListTile.
final
- title → Widget?
-
final
- trailing → Widget?
-
A widget to display after the title.
final
- visualDensity → VisualDensity?
-
Defines how compact the expansion tile's layout will be.
final
Methods
-
copyWith(
{Widget? title, Widget? leading, Widget? subtitle, Color? backgroundColor, Color? collapsedBackgroundColor, Widget? trailing, bool? showTrailingIcon, EdgeInsetsGeometry? tilePadding, Alignment? expandedAlignment, CrossAxisAlignment? expandedCrossAxisAlignment, EdgeInsetsGeometry? childrenPadding, Color? iconColor, Color? collapsedIconColor, Color? textColor, Color? collapsedTextColor, ShapeBorder? shape, ShapeBorder? collapsedShape, Clip? clipBehavior, bool? dense, VisualDensity? visualDensity, double? minTileHeight, AnimationStyle? expansionAnimationStyle}) → TreeNodeUi -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited