TreeViewKey<T> class
A GlobalKey for controlling the state of the TreeView.
Example:
final treeKey = TreeViewKey<String>();
TreeView<String>(
key: treeKey,
// ... other parameters
)
Constructors
- TreeViewKey()
-
Creates a GlobalKey for controlling the state of the TreeView.
const
Properties
- currentContext → BuildContext?
-
The build context in which the widget with this key builds.
no setterinherited
-
currentState
→ _TreeViewState<
T> ? -
The State for the widget in the tree that currently has this global key.
no setterinherited
- currentWidget → Widget?
-
The widget in the tree that currently has this global key.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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