A simple injector based on a Map of values.

Implements
  • Injector

Static Methods

createFactory([Map values ]) InjectorFactory

Constructors

MapInjector([Injector _parent = null, Map values = null ])

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

get(token, [ notFoundValue = THROW_IF_NOT_FOUND ]) → dynamic

Retrieves an instance from the injector based on the provided token. If not found: - Throws NoProviderError if no notFoundValue that is not equal to Injector.THROW_IF_NOT_FOUND is given - Returns the notFoundValue otherwise

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