pushDynamicScreen<T> function
Implementation
Future<T?> pushDynamicScreen<T>(
BuildContext context, {
required dynamic screen,
bool? withNavBar,
}) {
if (withNavBar == null) {
withNavBar = true;
}
return Navigator.of(context, rootNavigator: !withNavBar).push<T>(screen);
}