TreeWidgetState<T> class
The state for a TreeWidget widget.
- Inheritance
-
- Object
- State<
TreeWidget< T> > - TreeWidgetState
- Implemented types
Constructors
Properties
- context → BuildContext
-
The location in the tree where this widget builds.
no setterinherited
-
flatNodes
↔ List<
FlatNode< T> > -
The list of visible nodes after flattening the tree based on expansion state.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- internalContext ↔ BuildContext?
-
Undocumented public member.
getter/setter pairinherited
-
internalWidget
↔ TreeWidget<
T> ? -
Undocumented public member.
getter/setter pairinherited
- mounted → bool
-
Whether this State object is currently in a tree.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollOffset ↔ int
-
The current vertical scroll offset.
getter/setter pair
- selectedIndex ↔ int
-
The currently selected node index within the flatNodes list.
getter/setter pair
-
widget
→ TreeWidget<
T> -
The current configuration.
no setterinherited
Methods
-
adjustScroll(
int viewportHeight) → void - Adjusts the scroll offset so that the selectedIndex item is visible.
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
didChangeDependencies(
) → void -
Called when a dependency of this State object changes.
inherited
-
didUpdateWidget(
covariant TreeWidget< T> oldWidget) → void -
Called whenever the widget configuration changes.
override
-
dispose(
) → void -
Called when this object is removed from the tree permanently.
override
-
handleKeyEvent(
KeyEvent event) → bool -
Handles a keyboard event, returning true if the event was consumed.
override
-
initState(
) → void -
Called when this object is inserted into the tree.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reassemble(
) → void -
Called when the application is reassembled during debugging (hot reload).
inherited
-
setState(
VoidCallback fn) → void -
Notifies the framework that the internal state of this object has changed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateFlatNodes(
) → void - Rebuilds the flatNodes list by traversing the tree starting from the root.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited