restorableReplaceRouteBelow<T extends Object?> method

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

Replaces a route on the navigator with a new route. The route to be replaced is the one below the given anchorRoute.

Implementation

@optionalTypeArgs
String restorableReplaceRouteBelow<T extends Object?>(
        {required Route<dynamic> anchorRoute,
        required RestorableRouteBuilder<T> newRouteBuilder,
        Object? arguments}) =>
    appState!.restorableReplaceRouteBelow<T>(
        anchorRoute: anchorRoute,
        newRouteBuilder: newRouteBuilder,
        arguments: arguments);