push method
Future<void>
push({
- required String route,
- Map<
String, dynamic> ? item, - dynamic onPop()?,
- required BuildContext context,
Implementation
Future<void> push({
required String route,
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).push(route);
if (onPop != null) onPop();
}
}