/span></h2>
      <pre class="language-dart"><code class="language-dart">Stream&lt;T&gt; asBroadcastStream(
    {void onListen(StreamSubscription&lt;T&gt; subscription),
    void onCancel(StreamSubscription&lt;T&gt; subscription)}) {
  return new _AsBroadcastStream&lt;T&gt;(this, onListen, onCancel);
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>