Injector<T> class abstract

Service injector that is responsible for searching for instances in all bind contexts.

Constructors

Injector()

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

addBindContext(BindContext module, {String tag = ''}) → void
adds a context to the tree.
call<B extends Object>() → B
destroy() → void
Destroy all BindContext
dispose<B extends Object>() bool
Dispose a Bind by Type
disposeModuleByTag(String tag) → void
Removes a BindContext based on its tags. If your tag repository is empty, the BindContext will be removed automatically.
get<B extends Object>() → B
Request an instance by Type
isModuleAlive<T extends BindContext>() bool
Checks if the context (Module) is in the context of binds.
isModuleReady<M extends BindContext>() Future<bool>
checks if all asynchronous binds are ready to be used synchronously of all BindContext of Tree.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
used for reassemble all singleton injections
removeBindContext<T extends BindContext>() → void
remove BindContext by Type
removeScopedBinds() → void
Removes only ScopedBind from BindContext tree
toString() String
A string representation of this object.
inherited
updateBinds(BindContext context) → void
internal used for reassemble bind list

Operators

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