title: Is there a way in Dart to access attributes dynamically, like with Javascript objects-as-hashes?
body: <p>For example, in javascript I might have a function:</p>
  
  <pre><code>this.getPrettyAttr = function(attr){
      return attr + " is: " + this[attr];
  }
  </code></pre>
  
  <p>Where attr is a string, to get things like:  </p>
  
  <blockquote>
    <p>"strength is 7", "height is 5", "power is 9001", "name is Betty"</p>
  </blockquote>
  
  <p>Is there an equivalent way to do this in Dart, or am I stuck doing things manually again?</p>