KeyEvent constructor

const KeyEvent({
  1. required KeyCode code,
  2. String? char,
})

Creates a keyboard event with the given key code and optional character.

Implementation

const KeyEvent({required this.code, this.char});