replace<T extends Object?> method
void
replace<T extends Object?>({})
Replaces a route on the navigator that most tightly encloses the given context with a new route.
Implementation
@optionalTypeArgs
void replace<T extends Object?>(
{required Route<dynamic> oldRoute, required Route<T> newRoute}) =>
App.router.replace<T>(oldRoute: oldRoute, newRoute: newRoute);