onPop method
Called when a pop event occurs A pop event can be called programmatically (with VRouter.of(context).pop()) or by other widgets such as the appBar back button
Use vRedirector
if you want to redirect or stop the navigation.
DO NOT use VRouter methods to redirect.
vRedirector
also has information about the route you leave and the route you go to
The route you go to is calculated based on VRouterState._defaultPop
Note that you should consider the pop cycle to
handle this precisely, see https://vrouter.dev/guide/Advanced/Pop%20Events/onPop
Also see:
- VRouter.onPop for router level onPop
- VWidgetGuard.onPop for widget level onPop
- VRedirector to known how to redirect and have access to route information
Implementation
@override
Future<void> onPop(VRedirector vRedirector) => _onPop(vRedirector);