RawKeyEventDataFuchsia constructor Null safety

const RawKeyEventDataFuchsia(
  1. {int hidUsage = 0,
  2. int codePoint = 0,
  3. int modifiers = 0}
)

Creates a key event data structure specific for Fuchsia.

The hidUsage, codePoint, and modifiers arguments must not be null.

Implementation

const RawKeyEventDataFuchsia({
  this.hidUsage = 0,
  this.codePoint = 0,
  this.modifiers = 0,
}) : assert(hidUsage != null),
     assert(codePoint != null),
     assert(modifiers != null);