GlobalNodeKey<T extends Node> class
A global key that provides access to the dom web.Node
that is associated with its element.
See also:
- GlobalKey, which is a key that is unique across the entire app.
- GlobalStateKey, which is a key that provides access to the State that is associated with its element.
- The discussion at Component.key for more information about how components use keys.
- Inheritance
- Implementers
Constructors
- GlobalNodeKey.new({String? debugLabel})
-
factory
- GlobalNodeKey.constructor()
-
Creates a global node key without a label.
const
Properties
- currentComponent → Component?
-
The component in the tree that currently has this global key.
no setterinherited
- currentContext → BuildContext?
-
The build context in which the component with this key builds.
no setterinherited
- currentNode → T?
-
The
web.Node
for the component in the tree that currently has this global key.no setter - 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