title: Can't figure out how to load yaml document in Dart
body: <p>According to the <a href="https://github.com/dart-lang/yaml" rel="nofollow noreferrer">readme</a> for the Dart-Yaml pub package, I should be able to do the following:</p>
  
  <p><code>var db = loadYamlDocument("db.yaml");</code></p>
  
  <p>with <code>print(db['hostname']);</code> giving me the value I have specified for port in that yaml, however I'm told that YamlDocument has no instance method <code>[]</code>.  Okay, I guess that object doesn't have map behaviors, which is something I would have expected it to have.  Looking through the docs, there's mention of a YamlMap, but I don't see how to implement that at all.</p>
  
  <p>If I simply try <code>print(db);</code> I actually get the string: <code>'db.yaml'</code>.</p>
  
  <p>So I tried using <code>new File('db.yaml');</code> and then sending that variable into the <code>loadYamlDocument</code> method, but that doesn't work either.  </p>
  
  <p>Does anyone have any luck reading a yaml document and getting a map out of it in Dart?</p>