restorableReplace<T extends Object?> method

  1. @optionalTypeArgs
String restorableReplace<T extends Object?>({
  1. required Route oldRoute,
  2. required RestorableRouteBuilder<T> newRouteBuilder,
  3. Object? arguments,
})

Replaces a route on the navigator that most tightly encloses the given context with a new route.

Implementation

@optionalTypeArgs
String restorableReplace<T extends Object?>(
        {required Route<dynamic> oldRoute,
        required RestorableRouteBuilder<T> newRouteBuilder,
        Object? arguments}) =>
    App.router.restorableReplace<T>(
        oldRoute: oldRoute,
        newRouteBuilder: newRouteBuilder,
        arguments: arguments);