loadFileYaml static method

Map loadFileYaml(
  1. String path
)

Implementation

static Map<dynamic, dynamic> loadFileYaml(String path) {
  try {
    final File file = File(path);
    final String yamlString = file.readAsStringSync();
    return loadYaml(yamlString);
  } catch (e) {
    printerr(e.toString());
    return {};
  }
}