CacheContainer class
A rudimentary DI container implementation container bindings are created as needed.
- Implemented types
Constructors
Properties
Methods
-
bind<
T> (String key, T 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.
override
-
clone(
) → Container -
Clones a container so that a new container can have values bound to it
without updating this current container.
override
-
make<
T> (String key) → T? -
Generate an item for a given key
override
-
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