Answers for "how to check system environment variables in dart"

0

how to check system environment variables in dart

import 'dart:io';

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

  print('Env:');
  Platform.environment.keys.forEach((key) {
    print('${key} ${Platform.environment[key]}');
  });
}
Posted by: Guest on September-13-2021

Code answers related to "how to check system environment variables in dart"

Code answers related to "Dart"

Browse Popular Code Answers by Language