KeyEvent constructor

KeyEvent(
  1. String type,
  2. {Window? view,
  3. bool canBubble = true,
  4. bool cancelable = true,
  5. int keyCode = 0,
  6. int charCode = 0,
  7. int location = 1,
  8. bool ctrlKey = false,
  9. bool altKey = false,
  10. bool shiftKey = false,
  11. bool metaKey = false,
  12. EventTarget? currentTarget}
)

Programmatically create a new KeyEvent (and KeyboardEvent).

Implementation

factory KeyEvent