RawKeyEventDataMacOs constructor Null safety

const RawKeyEventDataMacOs(
  1. {String characters = '',
  2. String charactersIgnoringModifiers = '',
  3. int keyCode = 0,
  4. int modifiers = 0,
  5. int? specifiedLogicalKey}
)

Creates a key event data structure specific for macOS.

The characters, charactersIgnoringModifiers, and modifiers, arguments must not be null.

Implementation

const RawKeyEventDataMacOs({
  this.characters = '',
  this.charactersIgnoringModifiers = '',
  this.keyCode = 0,
  this.modifiers = 0,
  this.specifiedLogicalKey,
}) : assert(characters != null),
     assert(charactersIgnoringModifiers != null),
     assert(keyCode != null),
     assert(modifiers != null);