stopRecording method

void stopRecording()

This function stops the macro recording, by removing the key listener from the hardware keyboard, and setts the state to not recording.

Implementation

void stopRecording() {
  // set the state
  _isRecording = false;
  _keyboardInvoker.notifyListeners();

  // remove the listener
  HardwareKeyboard.instance.removeHandler(_recordKeys);
}