clearKeysPressed method Null safety

  1. @visibleForTesting
void clearKeysPressed()

Clears the list of keys returned from keysPressed.

This is used by the testing framework to make sure tests are hermetic.

Implementation

@visibleForTesting
void clearKeysPressed() => _keysPressed.clear();