loadYml method

Future<YamlMap> loadYml(
  1. String assetPath
)

引数のアセットパスからyamlを読み込み YamlMap(package:yaml/yaml)形式で返す

Implementation

Future<YamlMap> loadYml(String assetPath) async {
  final text = await loadText(assetPath);
  final yamlMap = loadYaml(text) as YamlMap;
  return yamlMap;
}