flush property

  1. @override
ISet<T> flush
override

Flushes the set, if necessary. Chainable method. If the set is already flushed, don't do anything.

Implementation

@override
ISet<T> get flush {
  if (!isFlushed) {
    // Flushes the original _s because maybe it's used elsewhere.
    // Or maybe it was flushed already, and we can use it as is.
    _s = SFlat<T>.unsafe(_s.getFlushed(config));
    _counter = 0;
  }
  return this;
}