title: No top-level method 'spawnFunction' declared
body: <p>I'm trying to use Isolates in Dart. The tutorials from dartlang.org seem to use the function <code>spawnFunction</code>. But that does not seem to work for me. And I cant find any docs about this.</p>
  
  <pre><code>import 'dart:isolate';
  
  void doThing() {
    print('Hello!');
  }
  
  main() {
    spawnFunction(doThing);
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>Unhandled exception:
  No top-level method 'spawnFunction' declared.
  </code></pre>
  
  <p>The docs from <a href="http://api.dartlang.org/docs/releases/latest/dart_isolate/Isolate.html" rel="nofollow" title="api.dartlang.org">api.dartlang.org</a> mention <code>Isolate.spawn</code> but I get an error saying there is no static method <code>spawn</code> declared. </p>
  
  <p>Did I miss something? A link to appropriate docs (if any) would be appreciated.</p>
  
  <p>Thanks!</p>