NOTE: this project has been renamed to settings_yaml.

Please see the for the latest version.

Provide a very simple method to use yaml files for saving an apps configuration.

Saving config data:

void save() {
  var settings = SimpleYaml(filePath: '.settings.yaml');

  settings['dbname'] = 'billing';
  settings['dbusername'] = 'username';
  settings['dbpassword'] = 'apassword';;

Loading config data.

void load() {
  var settings = SimpleYaml.load(filePath: '.settings.yaml');

  var dbname = settings['dbname'];
  var username = settings['dbusername'];
  var password = settings['dbpassword'];

  print('dbname $dbname, username: $username, password: $password');