onPop method

  1. @override
Future<void> onPop(
  1. VRedirector vRedirector
)
override

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:

Implementation

@override
Future<void> onPop(VRedirector vRedirector) => _onPop(vRedirector);