DesignTreeItem<T extends Object> class
A row's paint state.
- Annotations
Constructors
-
DesignTreeItem({required DesignTreeRow<
T> row, required bool hasChildren, required bool expanded, required bool selected, required Set<WidgetState> states, required VoidCallback toggle}) -
The row's state; the tree makes it.
const
Properties
- expanded → bool
-
Whether it is open.
final
- hasChildren → bool
-
Whether it has children (the look draws a disclosure).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
row
→ DesignTreeRow<
T> -
The row.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
Whether it is selected.
final
-
states
→ Set<
WidgetState> -
Its pressable states (WidgetState.focused while the keyboard is on
it).
final
- toggle → VoidCallback
-
Opens or closes it: for the disclosure's press.
final
Methods
-
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