MomentumTester class
Testing tool for momentum.
Constructors
- MomentumTester(Momentum momentum)
- Testing tool for momentum.
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
-
controller<
T extends MomentumController?> () → T? -
Get a controller of type
T
. -
init(
) → Future< void> - Initialize the dependencies the same way they are initialized in root widget.
-
mockLazyBootstrap<
T extends MomentumController> () → Future< void> -
Mock call
bootstrap()
andbootstrapAsync()
for a specific lazy controller for testing. -
mockRouterParam(
RouterParam param) → void - Mock router params for testing.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
service<
T extends MomentumService> ({bool runtimeType = true, dynamic alias}) → T -
Get a service of type
T
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited