A global 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.

Inheritance
Annotations
  • optionalTypeArgs

Constructors

GlobalObjectKey(Object value)

Creates a global key that uses identical on value for its operator==.

const

Properties

hashCode int

read-only
value Object

The object whose identity is used by this key's operator==.

read-only
currentContext BuildContext

The build context in which the widget with this key builds.

read-only, inherited
currentState → T

The State for the widget in the tree that currently has this global key.

read-only, inherited
currentWidget Widget

The widget in the tree that currently has this global key.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

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