pushReplacement method

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