Container class

A rudimentary DI container implementation container bindings are created as needed.

Constructors

Container()

Properties

bindings Map<String, dynamic>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(String key, dynamic fn(Container)) → void
Binds a new DI item into the container The function bound to the provided key will only be called when the container receives a request for the item at that key.
make(String key) → dynamic
Generate an item for a given key
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited