获取系统的环境变量
Use Platform.environment
to get the environment for the current process.
import 'dart:io' show Platform;
main() {
Map<String, String> envVars = Platform.environment;
print(envVars['PATH']);
}
Use Platform.environment
to get the environment for the current process.
import 'dart:io' show Platform;
main() {
Map<String, String> envVars = Platform.environment;
print(envVars['PATH']);
}