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 the discussions at Key and Widget.key.

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. [...]
read-only
value Object
The object whose identity is used by this key's operator==.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]