hcLaunchNewScreenWithNewTask<T> function
Removes all previous screens from the back stack and redirect to new screen with provided screen tag
launchNewScreenWithNewTask(context, '/HomePage');
Implementation
Future<T?> hcLaunchNewScreenWithNewTask<T>(
BuildContext context, String tag) async =>
Navigator.of(context).pushNamedAndRemoveUntil(tag, (r) => false);