loadConfig method

Local2DartConfig loadConfig(
  1. String yamlPath
)

Loads configuration from a YAML file.

Parameters:

  • yamlPath: The path to the YAML configuration file.

Returns: A Local2DartConfig object with the parsed configuration.

Implementation

Local2DartConfig loadConfig(String yamlPath) {
  final yaml = YamlHelper.loadFileYaml(yamlPath);
  return Local2DartConfig.fromMap(_convertMapToStringDynamic(yaml));
}