pan></h2>
          <pre class="language-dart"><code class="language-dart">SpeechGrammar get single {
  int len = this.length;
  if (len == 1) {
    return JS(&#39;SpeechGrammar&#39;, &#39;#[0]&#39;, this);
  }
  if (len == 0) throw new StateError(&quot;No elements&quot;);
  throw new StateError(&quot;More than one element&quot;);
}</code></pre>
        </section>
</section>
        
  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanv