KeyboardEvent constructor

KeyboardEvent(
  1. String type, {
  2. Window? view,
  3. bool altKey = false,
  4. int? charCode,
  5. String? code,
  6. bool ctrlKey = false,
  7. bool? isComposing = false,
  8. int? keyCode,
  9. int? location,
  10. bool metaKey = false,
  11. bool? repeat = false,
  12. bool shiftKey = false,
  13. bool canBubble = true,
  14. bool cancelable = true,
})

Implementation

KeyboardEvent(
  super.type, {
  Window? view,
  this.altKey = false,
  int? charCode,
  this.code,
  this.ctrlKey = false,
  this.isComposing = false,
  int? keyCode,
  this.location,
  this.metaKey = false,
  this.repeat = false,
  this.shiftKey = false,
  super.canBubble,
  super.cancelable,
})  : charCode = charCode ?? -1,
      keyCode = keyCode ?? -1;