ExpanderThemeData class

Defines the appearance of the expander icons.

Used by TreeViewTheme to control the appearance of the expander icons for a parent tree node in the TreeView widget.

Constructors

ExpanderThemeData({Color? color, ExpanderPosition position = ExpanderPosition.start, ExpanderType type = ExpanderType.caret, double size = _kDefaultExpanderSize, ExpanderModifier modifier = ExpanderModifier.none, bool animated = true})
const
ExpanderThemeData.fallback()
Creates an expander icon theme with some reasonable default values.
const

Properties

animated bool
The animation state for expander icon. It determines whether the icon animates when changing states
final
color Color?
The color for expander icon.
final
hashCode int
The hash code for this object.
no setteroverride
modifier ExpanderModifier
The ExpanderModifier for expander icon.
final
position ExpanderPosition
The ExpanderPosition for expander icon.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
The size for expander icon.
final
type ExpanderType
The ExpanderType for expander icon.
final

Methods

copyWith({Color? color, ExpanderType? type, ExpanderPosition? position, ExpanderModifier? modifier, bool? animated, double? size}) ExpanderThemeData
Creates a copy of this theme but with the given fields replaced with the new values.
merge(ExpanderThemeData? other) ExpanderThemeData
Returns a new theme that matches this expander theme but with some values replaced by the non-null parameters of the given icon theme. If the given expander theme is null, simply returns this theme.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) ExpanderThemeData
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override