pop method
Future<void>
pop({
- Map<
String, String> pathParameters = const {}, - Map<
String, String> queryParameters = const {}, - String? hash,
- Map<
String, String> newHistoryState = const {},
inherited
Starts a pop cycle
Pop cycle:
- onPop is called in all VWidgetGuards
- onPop is called in the nested-most VRouteElement of the current route
- onPop is called in VRouter
- Default behaviour of pop is called:
VRouterState._defaultPop
In any of the above steps, we can use vRedirector
if you want to redirect or
stop the navigation
Implementation
@override
Future<void> pop({
Map<String, String> pathParameters = const {},
Map<String, String> queryParameters = const {},
String? hash,
Map<String, String> newHistoryState = const {},
}) async =>
vRouterDelegate.pop(
pathParameters: pathParameters,
queryParameters: queryParameters,
hash: hash,
newHistoryState: newHistoryState,
);