RouteMock class abstract
This class is used for testing,so you don't have to add routes to your test
Just set the QR.settings.mockRoute
and the package will use this RouteMock
to check if the test is navigated to a page or not.
Constructors
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
-
mockName(
String name) → String? - This method is used to mock the name of the route. It should return the path of the route. Then the mockPath will be called to get the route.
-
mockPath(
String path) → QRoute? -
This method is used to mock the path of the route.
It should return the the route.
If this method returns null, then the package will use the
QR.settings.notFound
route. -
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