clear method
void
clear()
Implementation
void clear() {
_open();
if (_pending != null) throw StateError('Cancel the current turn first');
_history.clear();
_candidate = null;
_turns = 0;
_reusedTokens = 0;
}