MockInjector class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCommitted ↔ bool
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add<
T> (Function constructor, {String? key}) → void -
inherited
-
addInjector(
Injector injector) → void -
inherited
-
addInstance<
T> (T instance, {String? key}) → void -
inherited
-
addLazyInstance<
T> (Future< T> instance, {String? key}) → void -
inherited
-
addSingleton<
T> (Function constructor, {String? key}) → void -
inherited
-
commit(
) → void -
inherited
-
get<
T> ({String? key}) → T -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryGet<
T> ({String? key}) → T? -
inherited
-
tryUse<
T> ({String? key}) → T? -
inherited
-
uncommit(
) → void -
inherited
-
use<
T> ({String? key}) → T -
inherited
-
waitFor<
T> (dynamic cmd(), {Duration duration = const Duration(milliseconds: 100)}) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited