replace<T> method
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();