re class="language-dart"><code class="language-dart">void clear() {
  _modificationCount++;
  if (isEmpty) return;

  E next = _first;
  do {
    E entry = next;
    next = entry._next;
    entry._next = entry._previous = entry._list = null;
  } while (!identical(next, _first));

  _first = null;
  _length = 0;
}</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-