RawKeyEventDataWindows constructor Null safety

const RawKeyEventDataWindows(
  1. {int keyCode = 0,
  2. int scanCode = 0,
  3. int characterCodePoint = 0,
  4. int modifiers = 0}
)

Creates a key event data structure specific for Windows.

The keyCode, scanCode, characterCodePoint, and modifiers, arguments must not be null.

Implementation

const RawKeyEventDataWindows({
  this.keyCode = 0,
  this.scanCode = 0,
  this.characterCodePoint = 0,
  this.modifiers = 0,
}) : assert(keyCode != null),
     assert(scanCode != null),
     assert(characterCodePoint != null),
     assert(modifiers != null);