ObjectKey class

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.
Inheritance

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.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Object?
The object whose identity is 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