go method

Future<void> go({
  1. required String route,
  2. Map<String, dynamic>? item,
  3. dynamic quickDispose()?,
  4. required BuildContext context,
})

Implementation

Future<void> go({
  required String route,
  Map<String, dynamic>? item,
  dynamic Function()? quickDispose,
  required BuildContext context,
}) async {
  if (_route != null) {
    _deliveringItem = item;
    pageQue.add(QueRoute(route: _route!.route!, type: lastNavigationType));
    if (quickDispose != null) {
      await quickDispose();
    }
    GoRouter.of(context).go(route);
    lastNavigationType = NavigationType.go;
    //if (kIsWeb) {
    //} else {
    //  Get.rootDelegate.toNamed(route);
    //}
  }
}