replaceRouteBelow<T extends Object?> method

  1. @optionalTypeArgs
void replaceRouteBelow<T extends Object?>({
  1. required Route anchorRoute,
  2. required Route<T> newRoute,
})

Replaces a route on the navigator with a new route. The route to be replaced is the one below the given anchorRoute.

Implementation

@optionalTypeArgs
void replaceRouteBelow<T extends Object?>(
        {required Route<dynamic> anchorRoute, required Route<T> newRoute}) =>
    v.App.appState!.navigator!
        .replaceRouteBelow<T>(anchorRoute: anchorRoute, newRoute: newRoute);