GlobalStringKey class
Global-key that uses equals operator == of the String value to identify the key.
See also:
- If your value is NOT a String, you can use a GlobalValueKey.
- To compare by identity (using identical), try using a GlobalObjectKey.
- Inheritance
-
- Object
- Key
- GlobalKey<
State< StatefulWidget> > - GlobalStringKey
Constructors
- GlobalStringKey(String value)
-
const
Properties
- currentContext → BuildContext?
-
The build context in which the widget with this key builds.
no setterinherited
-
currentState
→ State<
StatefulWidget> ? -
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The String used by this key's operator==.
final
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