loadEnvironment method

Set<String> loadEnvironment()

Implementation

Set<String> loadEnvironment() {
  var envs = Platform.environment;

  var loadedKeys = <String>{};

  for (var e in envs.entries) {
    var v = envs[e.key]!;
    var k = ArgsSimple.normalizeKey(e.key);

    if (!properties.containsKey(k)) {
      putProperty(k, v);
      loadedKeys.add(k);
    }
  }

  return loadedKeys;
}