ObjectKey class Null safety
A key that takes its identity from the object used as its value.
Used to tie the identity of a widget to the identity of an object used to generate that widget.
See also:
- Key, the base class for all keys.
- The discussion at Widget.key for more information about how widgets use keys.
Constructors
- ObjectKey(Object? value)
-
Creates a key that uses identical on value for its operator==.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- value → Object?
-
The object whose identity is used by this key's operator==.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override