flush property

  1. @override
IMap<K, V> flush
override

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

Implementation

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