Consumer mixin

An mixin for values that can be accessed only via Dependency Injection with Injector and have other dependencies.

It gets the correct InjectorScope automatically when being injected, and takes care of passing it 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

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
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
toString() String
A string representation of this object.
inherited

Operators

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