DetachedConsumer mixin

An mixin for values that can be accessed without Dependency Injection, but need to use Dependencies from an Injector. Use it with the Injector.root scope.

The InjectorScope is passed down automatically to it's dependencies if needed.

Implemented types

Properties

dependencies List<Type>
The Types which will be made available to this by the Injector.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope InjectorScope
The base scope that will be used to get the dependencies. If this is an ICreateAnScope, it will be used as the parent scope for the new created scope.
no setter

Methods

childNodes() List<DependencyTreeNode>
Get the list of child nodes in an Dependency Tree
override
debugOverrideScope(InjectorScope newScope, {ScopeOverridingMode mode = ScopeOverridingMode.replace}) → void
Overide the current InjectorScope with an newScope in the desired mode for debuggind or testing purposes.
override
dependencyTree() DependencyTreeNode
dumpDependencyTree() → void
Dump the String representation of the toDependencyTree to the console output.
dumpScopeTree() → void
Dump the String representation of the scopeTree to the console output.
get<T>() → T
Get an T dependency from the Injector.
override
getAll() List<Object>
Get the injected value of every dependency in dependencies from the Injector.
override
getUntyped(Type t) Object
Get an untyped t dependency from the Injector.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scopeTree() ScopeTreeNode
Build the Scope tree from the current scope.
toDependencyTree() DependencyTreeNode
Build the Dependency tree from this.
toString() String
A string representation of this object.
inherited

Operators

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