/span></h2>
      <pre class="language-dart"><code class="language-dart">int lastIndexWhere(bool test(E element), [int? start]) {
  if (start == null || start &gt;= this.length) start = this.length - 1;

  &#47;&#47; TODO(38493): The previous line should promote.
  if (start == null) throw &quot;!&quot;;

  for (int i = start; i &gt;= 0; i--) {
    if (test(this[i])) return i;
  }
  return -1;
}</code></pre>
    </section>

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

  <div id="dartdoc-sidebar-right" class="col-xs-6 