yaml_writer 1.0.0 copy "yaml_writer: ^1.0.0" to clipboard
yaml_writer: ^1.0.0 copied to clipboard

outdated

A library to write YAML documents.

example/yaml_writer_example.dart

import 'package:yaml_writer/yaml_writer.dart';

void main() {
  var yamlWriter = YAMLWriter();

  var yamlDoc = yamlWriter.write({
    'name': 'Joe',
    'ids': [10, 20, 30],
    'desc': 'This is\na multiline\ntext',
    'enabled': true,
  });

  print(yamlDoc);
}

//---------------------
// OUTPUT:
//---------------------
// name: 'Joe'
// ids:
//   - 10
//   - 20
//   - 30
// desc: |-
//     This is
//     a multiline
//     text
// enabled: true
//
22
likes
0
pub points
92%
popularity

Publisher

unverified uploader

A library to write YAML documents.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on yaml_writer