push function
Implementation
Future<dynamic> push(BuildContext context, Widget widget,
{Route? route, bool? adaptive}) {
if (!isNavMounted(context)) {
throw "Navigator is unmounted";
}
return Navigator.of(context)
.push(route ?? router(context, widget, adaptive: adaptive));
}