pushNamed method
Future<void>
pushNamed({
- required String name,
- Map<
String, dynamic> ? item, - dynamic onPop()?,
- required BuildContext context,
Implementation
Future<void> pushNamed({
required String name,
Map<String, dynamic>? item,
dynamic Function()? onPop,
required BuildContext context,
}) async {
if (_route != null) {
_deliveringItem = item;
pageQue.add(QueRoute(route: _route!.route!, type: lastNavigationType));
lastNavigationType = NavigationType.push;
await GoRouter.of(context).pushNamed(name);
if (onPop != null) onPop();
}
}