OkitoDependencyInjection mixin

The base of Okito dependency injection.

We just mix this class with the Okito, then we can use it.

It is a totally undependent mixin, no override or anything required.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canUse<T>() bool
Check if the dependency is injected and ready to use.
eject<T>() → void
Removes the dependency that is injected before with inject function.
ejectWithKey<T>(String key) → void
It works just like eject function, but instead of just type, you give it a key.
inject<T>(T dependency) → T
Injects the dependency to the Okito, so that you can use it with use function.
injectWithKey<T>(String key, T dependency) → T
It works just like inject function, but instead of just type, you give it a key. It is mostly suitable for usages of same type more than once.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
use<T>() → T
Returns the dependency that is injected before with inject function.
useWithKey<T>(String key) → T
It works just like use function, but instead of type, you use with key. You have to inject using injectWithKey function first.

Operators

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