goNamed method
Future<void>
goNamed({
- required String name,
- Map<
String, dynamic> ? item, - dynamic quickDispose()?,
- 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);
//}
}
}