clear method

void clear()

Removes all data from the store and from any optimistic patches.

Implementation

void clear() {
  optimisticPatchesStream.add({});
  store.clear();
  _eventStream.add(null);
}