pushReplacementNamed method

void pushReplacementNamed({
  1. required String name,
  2. Map<String, dynamic>? item,
  3. 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);
  }
}