hcLaunchNewScreenWithNewTask<T> function

Future<T?> hcLaunchNewScreenWithNewTask<T>(
  1. BuildContext context,
  2. String tag
)

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);