flush method

void flush()

Flush dirty data to disk. Call periodically or before close.

Implementation

void flush() {
  _flushTimer?.cancel();
  _flushTimer = null;
  _flushToDisk();
}