clearState method

  1. @visibleForTesting
void clearState()

Reset the inferred platform transit mode and related states.

This method is only used in unit tests. In release mode, this is a no-op.

Implementation

@visibleForTesting
void clearState() {
  assert(() {
    _transitMode = null;
    _rawKeyboard.removeListener(_convertRawEventAndStore);
    _keyEventsSinceLastMessage.clear();
    return true;
  }());
}