onRedirect method

  1. @mustCallSuper
void onRedirect(
  1. RouteNode origin,
  2. RouteNode target,
  3. RouteNode redirect,
  4. RouteNodeGuard? guard,
)

Called when guard returns GuardResultRedirect with redirect as the new target.

Implementation

@mustCallSuper
void onRedirect(
  RouteNode origin,
  RouteNode target,
  RouteNode redirect,
  RouteNodeGuard? guard,
) {}