RawKeyEventDataMacOs constructor Null safety

const RawKeyEventDataMacOs(
  1. {String characters,
  2. String charactersIgnoringModifiers,
  3. int keyCode,
  4. int modifiers}
)

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,
}) : assert(characters != null),
     assert(charactersIgnoringModifiers != null),
     assert(keyCode != null),
     assert(modifiers != null);