replace<T> method

Future<T?> replace<T>(
  1. String location, {
  2. Object? extra,
})

Replaces the top-most page of the page stack with the given one but treats it as the same page.

Implementation

Future<T?> replace<T>(String location, {Object? extra}) =>
    App.goRouter?.replace<T>(location, extra: extra) ?? Future.value();