RawKeyEventDataAndroid constructor Null safety

const RawKeyEventDataAndroid(
  1. {int flags = 0,
  2. int codePoint = 0,
  3. int plainCodePoint = 0,
  4. int keyCode = 0,
  5. int scanCode = 0,
  6. int metaState = 0,
  7. int eventSource = 0,
  8. int vendorId = 0,
  9. int productId = 0,
  10. int deviceId = 0,
  11. int repeatCount = 0}
)

Creates a key event data structure specific for Android.

The flags, codePoint, keyCode, scanCode, and metaState arguments must not be null.

Implementation

const RawKeyEventDataAndroid({
  this.flags = 0,
  this.codePoint = 0,
  this.plainCodePoint = 0,
  this.keyCode = 0,
  this.scanCode = 0,
  this.metaState = 0,
  this.eventSource = 0,
  this.vendorId = 0,
  this.productId = 0,
  this.deviceId = 0,
  this.repeatCount = 0,
}) : assert(flags != null),
     assert(codePoint != null),
     assert(keyCode != null),
     assert(scanCode != null),
     assert(metaState != null);