replace<T extends Object?> method

  1. @optionalTypeArgs
void replace<T extends Object?>({
  1. required Route oldRoute,
  2. required Route<T> newRoute,
})

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

Implementation

@optionalTypeArgs
void replace<T extends Object?>(
        {required Route<dynamic> oldRoute, required Route<T> newRoute}) =>
    v.App.appState!.navigator!
        .replace<T>(oldRoute: oldRoute, newRoute: newRoute);