restorablePushReplacementNamed<T extends Object?, TO extends Object?> method
Replace the current route of the navigator that most tightly encloses the
given context by pushing the route named routeName
and then disposing
the previous route once the new route has finished animating in.
Implementation
@optionalTypeArgs
String restorablePushReplacementNamed<T extends Object?, TO extends Object?>(
String routeName,
{TO? result,
Object? arguments}) =>
appState!.restorablePushReplacementNamed<T, TO>(routeName,
result: result, arguments: arguments);