flush method

Future<void> flush()

Cancels the write delay and waits for a current save.

Implementation

Future<void> flush() async {
  _writeTimer?.cancel();
  _writeTimer = null;
  await save();
}