goNamed method

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

Implementation

Future<void> goNamed({
  required String name,
  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();
    }
    lastNavigationType = NavigationType.go;
    GoRouter.of(context).goNamed(name);
    //if (kIsWeb) {
    //} else {
    //  Get.rootDelegate.toNamed(searchPage(name)!.fullRoute);
    //}
  }
}