parseProperties method

Map<String, String> parseProperties()

Implementation

Map<String, String> parseProperties() {
  var list = argProperties ?? <String>[];

  var entries = list.map((e) {
    var idx = e.indexOf('=');
    String k, v;
    if (idx >= 0) {
      k = e.substring(0, idx);
      v = e.substring(idx + 1);
    } else {
      k = e;
      v = 'true';
    }

    return MapEntry(k, v);
  });

  return Map.fromEntries(entries);
}