pushReplacement method
void
pushReplacement(
- String location, {
})
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:
- go which navigates to the location.
- push which pushes the given location onto the page stack.
- replace which replaces the top-most page of the page stack but treats
it as the same page. The page key will be reused. This will preserve the
state and not run any page animation.
Implementation
void pushReplacement(String location, {Object? extra}) =>
GoRouter.of(this).pushReplacement(location, extra: extra);