readYamlMap method

void readYamlMap(
  1. FlutlyVariable variable,
  2. YamlMap map
)

Implementation

void readYamlMap(FlutlyVariable variable, YamlMap map) {
  map.forEach(
    (key, value) {
      FlutlyVariable newVariable = FlutlyVariable(key, value);
      variable.addChild(key, newVariable);
      if (value.runtimeType == YamlMap) readYamlMap(newVariable, value);
    },
  );
}