isFlutterTest function

bool isFlutterTest({
  1. bool? overrideIsWeb,
})

Implementation

bool isFlutterTest({
  bool? overrideIsWeb,
}) {
  if (isWeb(overrideIsWeb: overrideIsWeb)) return false;
  return Platform.environment.containsKey('FLUTTER_TEST');
}