pushReplacementNamed method
void
pushReplacementNamed({
- required String name,
- Map<
String, dynamic> ? item, - required BuildContext context,
Implementation
void pushReplacementNamed({
required String name,
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).pushReplacementNamed(name);
}
}