launchNewScreen<T> function

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

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