operator [] method

dynamic operator [](
  1. String path
)

Returns the value for the given key.

If the key doesn't exists then null is returned.

var settings = SettingsYaml.load('mysettings.yaml');
var password = settings['password'];

Implementation

dynamic operator [](String path) => _normalizedValue(path);