replaceRouteBelow<T extends Object?> method
- @optionalTypeArgs
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}) =>
App.appState!.navigator!
.replaceRouteBelow<T>(anchorRoute: anchorRoute, newRoute: newRoute);