collectAllKeys function

void collectAllKeys(
  1. YamlMap map,
  2. List<String> keys
)

Implementation

void collectAllKeys(YamlMap map, List<String> keys) {
  map.cast<String, dynamic>().forEach((k, v) {
    keys.add(k);

    if (v is YamlMap) {
      collectAllKeys(v, keys);
    }
  });
}