reset method

void reset()

Resets the history to the beginning.

Implementation

void reset() {
  _cursor = null;
  _messages.clear();
}