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}) =>
appState!.replace<T>(oldRoute: oldRoute, newRoute: newRoute);