title: Dart: how to get the "Type" from the class
body: <p>How do I get the "Type" instance of a given class?</p>
  
  <p>Based on <a href="http://www.dartlang.org/articles/m1-language-changes/#first-class-types" rel="nofollow">http://www.dartlang.org/articles/m1-language-changes/#first-class-types</a>, for example a construct like:</p>
  
  <pre class="lang-dart prettyprint-override"><code>class Foo{}
  
  Type type = Foo;
  </code></pre>
  
  <p>seems to pass the analyzer ok, but gives an error when run in Dartium. Is this just not supported in the VM yet, or is the syntax wrong? Or do I need to annotate Foo somehow, so that type info is retained at runtime, or something?</p>
  
  <p>thx</p>
  
  <p>Richard.</p>