BuilderConfig.fromYaml constructor

BuilderConfig.fromYaml(
  1. YamlMap yaml
)

Constructs a BuilderConfig from a yaml.

Implementation

BuilderConfig.fromYaml(YamlMap yaml)
    : tokenFilePath = _tokenFilePath(yaml),
      defaultSetName = yaml['defaultSetName'] ?? _fallbackDefaultSetName,
      fontConfig = (yaml['fontConfig'] ?? [])
          .map((e) => FontConfig.fromYaml(e))
          .toList()
          .cast<FontConfig>();