yaml_config 0.1.2 copy "yaml_config: ^0.1.2" to clipboard
yaml_config: ^0.1.2 copied to clipboard

A simple configuration using YAML file. It is easy to load a local YAML file as main configuration for application.

example/main.dart

import 'dart:io';
import 'package:yaml_config/yaml_config.dart';

void main() async {
  YamlConfig config = await YamlConfig.fromFile(new File('/path/to/file'));
  String foo = config.getString('foo');
  print(foo);
  int baz = config.getInt('baz');
  print(baz);
  bool bar = config.getBool('bar');
  print(bar);
}
0
likes
40
pub points
19%
popularity

Publisher

unverified uploader

A simple configuration using YAML file. It is easy to load a local YAML file as main configuration for application.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

yaml

More

Packages that depend on yaml_config