reset method

void reset()

Full reset: zeros length and releases both the order buffer and the reverse-index buffer back to empty. Used on controller-wide clear.

Implementation

void reset() {
  _len = 0;
  _orderNids = Int32List(0);
  _indexByNid = Int32List(0);
  _onMutated();
}