clear method

Future<void> clear()

Drops every saved answer, and keeps none that is still on its way. Call it after a write, so no screen draws a copy the write has made wrong.

Implementation

Future<void> clear() {
  _generation++;
  _memory.clear();
  return _change(() => _guard('clear', _store.clear));
}