Fix all strong-mode warnings.
Fix all strong-mode warnings.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//1948223002 .
6 files changed
tree: 76903639a9032a87d86120620af7c65f4c12245a
  1. .analysis_options
  2. .gitignore
  3. .test_config
  4. CHANGELOG.md
  5. LICENSE
  6. README.md
  7. benchmark/
  8. codereview.settings
  9. lib/
  10. libyaml-license.txt
  11. pubspec.yaml
  12. test/
README.md

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));
}