stop method

void stop()

Stops listening and drops a burst in progress.

Implementation

void stop() {
  if (!_listening) return;
  _listening = false;
  HardwareKeyboard.instance.removeHandler(handleKeyEvent);
  _idleTimer?.cancel();
  _assembler.reset();
  _consumed.clear();
}