restorablePushReplacement<T extends Object?, TO extends Object?> method

  1. @optionalTypeArgs
String restorablePushReplacement<T extends Object?, TO extends Object?>(
  1. RestorableRouteBuilder<T> routeBuilder, {
  2. TO? result,
  3. 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);