getKey method Null safety

String getKey()

Returns the keyboard key that has been hit

Implementation

String getKey() {
  return _key;
}