flushFactor property

int flushFactor

Indicates the number of operations an IMap may perform before it is eligible for auto-flush. Must be larger than 0.

Implementation

static int get flushFactor => _flushFactor;
void flushFactor=(int value)

Implementation

static set flushFactor(int value) {
  if (_flushFactor == value) return;
  if (ImmutableCollection.isConfigLocked)
    throw StateError("Can't change the configuration of immutable collections.");
  if (value > 0)
    _flushFactor = value;
  else
    throw StateError("flushFactor can't be $value.");
}