Container class
A rudimentary DI container implementation container bindings are created as needed.
Constructors
Properties
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