pushReplacement method
void
pushReplacement({
- required String route,
- Map<
String, dynamic> ? item, - required BuildContext context,
Implementation
void pushReplacement({
required String route,
Map<String, dynamic>? item,
required BuildContext context,
}) {
if (_route != null) {
_deliveringItem = item;
pageQue.add(QueRoute(route: _route!.route!, type: lastNavigationType));
lastNavigationType = NavigationType.pushReplacement;
GoRouter.of(context).pushReplacement(route);
}
}