| tag | 4d0598d87bdc8537f39d4fcf52f14b658b920f27 | |
|---|---|---|
| tagger | Kevin Moore <kevmoo@google.com> | Tue Jul 17 20:22:42 2018 |
| object | b0067c40f8ad8fe4f6ef93deed8246e52490187c |
| commit | b0067c40f8ad8fe4f6ef93deed8246e52490187c | [log] [tgz] |
|---|---|---|
| author | Patrice Chalin <chalin@users.noreply.github.com> | Tue Jul 17 20:21:57 2018 |
| committer | Kevin Moore <kevmoo@users.noreply.github.com> | Tue Jul 17 20:21:57 2018 |
| tree | 9ddcf91ad1f03bcd8338552f86c06dbdd140e00d | |
| parent | 70bede610892f5f94f0ebd340fb4cfc69bc34585 [diff] |
chore: set max SDK version to <3.0.0 (#46)
A parser for YAML.
Use loadYaml to load a single document, or loadYamlStream to load a stream of documents. For example:
import 'package:yaml/yaml.dart'; main() { var doc = loadYaml("YAML: YAML Ain't Markup Language"); print(doc['YAML']); }
This library currently doesn't support dumping to YAML. You should use JSON.encode from dart:convert instead:
import 'dart:convert'; import 'package:yaml/yaml.dart'; main() { var doc = loadYaml("YAML: YAML Ain't Markup Language"); print(JSON.encode(doc)); }