A unique object used for retrieving items from the ReflectiveInjector.

Keys have: - a system-wide unique id. - a token.

Key is used internally by ReflectiveInjector because its system-wide unique id allows the injector to store created objects in a more efficient way.

Key should not be created directly. ReflectiveInjector creates keys automatically when resolving providers.

Static Properties

numberOfKeys → num

read-only

Static Methods

get(Object token) ReflectiveKey

Retrieves a Key for a token.

Constructors

ReflectiveKey(Object token, num id)

Properties

displayName → String

Returns a stringified token.

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
id → num

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
token → Object

read-only

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited