isTestEnvironment function
Implementation
bool isTestEnvironment() {
try {
return Platform.environment.containsKey('FLUTTER_TEST');
// ignore: avoid_catches_without_on_clauses
} catch (e) {
return false;
}
}
bool isTestEnvironment() {
try {
return Platform.environment.containsKey('FLUTTER_TEST');
// ignore: avoid_catches_without_on_clauses
} catch (e) {
return false;
}
}