pushReplacement method
Replaces the top-most page of the page stack with the given URL location
w/ optional query parameters, e.g. /family/f2/person/p1?color=blue
.
See also:
Implementation
void pushReplacement(String location, {Object? extra}) =>
GoRouter.of(this).pushReplacement(location, extra: extra);