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.
- Key, the base class for all keys.
- The discussion at Widget.key for more information about how widgets use keys.
- ObjectKey(Object? value)
Creates a key that uses identical on value for its operator==.
- hashCode → int
The hash code for this object.
- runtimeType → Type
A representation of the runtime type of the object.
- value → Object?
The object whose identity is used by this key's operator==.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
) → String
A string representation of this object.
Object other) → bool
The equality operator.