InjectorScopeBuilder class abstract
An object which can create an InjectorScope after adding the needed types.
Constructors
- InjectorScopeBuilder()
-
factory
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
-
addBoundFactory<
T> (T boundFactory(T bind(IScopeProxy))) → void -
Bind the
boundFactory
to be injected to the typeT
on the InjectorScope. -
addDebugLabel(
String label) → void - Add an debug label to the scope. It is optional.
-
addFactory<
T> (T factory()) → void -
Bind the
factory
to be injected to the typeT
on the InjectorScope. -
addInjectedFactory<
T> (T injectedFactory(InjectorScope)) → void -
Bind the
injectedFactory
to be injected to the typeT
on the Injector and which needs the InjectorScope to build the value. Eg, an Consumer. -
addValue<
T> (T value) → void -
Bind the
value
to be injected to the typeT
on the InjectorScope. -
applyUpdates(
void updates(InjectorScopeBuilder)) → void - Apply many updates to this InjectorScopeBuilder
-
build(
[Maybe< InjectorScope> parent = const None()]) → InjectorScope -
Create the InjectorScope with the values and factories specified in
this
. -
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