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']);
}
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8