launchNewScreen<T> function
Go to new screen with provided screen tag.
launchNewScreen(context, '/HomePage');
Implementation
Future<T?> launchNewScreen<T>(BuildContext context, String tag) async =>
Navigator.of(context).pushNamed(tag);