startScreen<T> function Null safety

Future<T?> startScreen<T>(
  1. BuildContext context,
  2. Widget screen
)

Implementation

Future<T?> startScreen<T>(BuildContext context, Widget screen) => Navigator.push<T>(context, MaterialPageRoute(builder: (context) => screen));