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