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']); }
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did129450