te a future is to just use
one of the <a href="dart-async/Future-class.html">Future</a> constructors to capture the result of a single
asynchronous computation:</p>
<pre class="language-dart"><code>new Future(() { doSomething(); return result; });
</code></pre>
<p>or, if the future represents the result of a sequence of asynchronous
computations, they can be chained using <a href="dart-async/Future/then.html">Future.then</a> or similar functions
on <a href="dart-async/Future-class.html">Future</a>:</p>
<pre