YamlParser constructor
YamlParser()
A parser for YAML configuration files.
Supports YAML syntax including nested structures, lists, and comments. Preserves special property values like #{} and @{} for later resolution.
#{} and @{} are used to preserve special property values like #{} and @{} for later resolution.
Example usage:
void main() {
final parser = YamlParser();
final config = parser.parse('key: value');
print(config['key']); // Output: value
final config = parser.parseAsset(asset);
print(config['key']); // Output: value
final config = parser.parseFile('config.yaml');
print(config['key']); // Output: value
}
Implementation
YamlParser();