Is “Don’t use ‘BuildContext’s across async gaps” a useless Flutter warning?
Consider this first example: Future<void> initializeServices() async { await notificationService.begin(); await geotrackingService.begin(); Navigator.of(context).pop(); // Don't use 'BuildContext's across async gaps. } Now, consider this second example: Future<void> initializeServices() async { await notificationService.begin(); await geotrackingService.begin(); exitScreen(); // exitScreenAsync(); } void exitScreen()…