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