startRecording method
void
startRecording()
This function starts the macro recording, by adding the key listener to the hardware keyboard, and setting the state to recording.
Implementation
void startRecording() {
// set the state to recording
_isRecording = true;
_lastKeyEventTime = DateTime.now();
_keyboardInvoker.notifyListeners();
// add the listener
HardwareKeyboard.instance.addHandler(_recordKeys);
}