GlobalValueKey<T extends State<StatefulWidget>> class

Global-key that uses equals operator == of the keyValue to identify the key.

See also:

Inheritance

Constructors

GlobalValueKey(Object? keyValue)
const

Properties

currentContext BuildContext?
The build context in which the widget with this key builds.
no setterinherited
currentState → 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 setteroverride
keyValue Object?
The object whose identity is used by this key's operator==.
final
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.
override

Operators

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