onFlushComplete method

Future<void> onFlushComplete()

Increment flush counter and run WAL checkpoint every 10 flushes.

Implementation

Future<void> onFlushComplete() async {
  _flushCounter++;
  if (_flushCounter % 10 == 0) {
    await walCheckpoint();
  }
}