Skip to main content

utility_yaml 1.1.5 copy "utility_yaml: ^1.1.5" to clipboard
utility_yaml: ^1.1.5 copied to clipboard

This is just a packages that lets me use YamlMap in a way I'm comfortable with.

This is just a packages that lets me use YamlMap in a way I'm comfortable with.


Usage #

YamlConfiguration

import 'package:utility_yaml/utility_yaml.dart';

main() {
  final yaml = YamlConfiguration.loadPath('example/config.yml');
  print(yaml.getString('string'));
  print(yaml.getInt('int'));
  print(yaml.getDouble('double'));
  print(yaml.getBoolean('boolean'));
  print(yaml.getList('list'));
  print(yaml.getMap('map'));

  yaml.put('copy', [1, 2, 3, 4, 5]);

  yaml.saveToPath('example/configCopy.yml');
}
0
likes
150
points
20
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This is just a packages that lets me use YamlMap in a way I'm comfortable with.

Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

Dependencies

json_annotation, yaml

More

Packages that depend on utility_yaml