isFlutterIntegrationTest function
For Integration Test run as flutter test
or flutter drive
,
FLUTTER_TEST
needs to be passed as --dart-define="FLUTTER_TEST=true"
Implementation
bool isFlutterIntegrationTest() => const bool.fromEnvironment('FLUTTER_TEST');