getSectionNames method
Gets a list with all 1st level section names.
Returns a list of section names stored in this ConfigMap.
Implementation
List<String> getSectionNames() {
var sections = <String>[];
for (var key in getKeys()) {
var pos = key.indexOf('.');
var section = key;
if (pos > 0) section = key.substring(0, pos);
// Perform case sensitive search
var found = false;
for (var index = 0; index < sections.length; index++) {
if (section == sections[index]) {
found = true;
break;
}
}
if (!found) sections.add(section);
}
return sections;
}