environmentValue method
Environment value, case insensitive on Windows.
Implementation
String? environmentValue(String key) {
if (isWindows) {
final upper = key.toUpperCase();
for (final entry in environment.entries) {
if (entry.key.toUpperCase() == upper) {
return entry.value;
}
}
return null;
}
return environment[key];
}