 a <a href="dart-core/StateError-class.html">StateError</a>.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">E firstWhere(bool test(E element), {E orElse()}) {
  for (E element in this) {
    if (test(element)) return element;
  }
  if (orElse != null) return orElse();
  throw IterableElementError.noElement();
}</code></pre>
    </section>

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

 