restorablePushReplacement<T extends Object?, TO extends Object?> method
- @optionalTypeArgs
- 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}) =>
App.router.restorablePushReplacement<T, TO>(routeBuilder,
result: result, arguments: arguments);