📜  如何在 dart 代码示例中检查系统环境变量

📅  最后修改于: 2022-03-11 14:48:08.998000             🧑  作者: Mango

代码示例1
import 'dart:io';

main(List arguments) {
  print('Path: ${Platform.script.path}');
  print('dart: ${Platform.executable}');

  print('Env:');
  Platform.environment.keys.forEach((key) {
    print('${key} ${Platform.environment[key]}');
  });
}