restorablePushReplacement<T extends Object?, TO extends Object?> method
String
restorablePushReplacement<T extends Object?, TO extends Object?>(
- RestorableRouteBuilder<
T> routeBuilder, { - TO? result,
- Object? arguments,
Replace the current route of the navigator by pushing a new route and then disposing the previous route once the new route has finished animating in.
Implementation
@optionalTypeArgs
String restorablePushReplacement<T extends Object?, TO extends Object?>(
RestorableRouteBuilder<T> routeBuilder,
{TO? result,
Object? arguments}) =>
appState!.restorablePushReplacement<T, TO>(routeBuilder,
result: result, arguments: arguments);