onEvent method
This function responsible for notifying to the parent listeners and clears the keycode for every buffer time(100ms).
Implementation
void onEvent(String? char) {
notifyListeners();
checkKeyCodeToClear(char);
_lastScannedTime = DateTime.now();
}