Injector class abstract
Constructors
- Injector.newInstance()
-
Retrieve a brand new instance of Injector.
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
-
get<
T extends Object> () → T - Get the instance that was injected.
-
inject<
T extends Object> (InstanceFunction< T> instance, {InjectionType type = InjectionType.singleton, bool overrideInstance = false}) → void - Inject a factory
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove<
T extends Object> () → void - Removes the instance.
-
removeAllInstances(
) → void - Removes all instances.
-
reset<
T extends Object> () → void -
Resets the instance of
T
that was injected. -
resetAllInstances(
) → void - Resets all instances that were injected
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited