RawKeyEventDataIos constructor Null safety

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

Creates a key event data structure specific for iOS.

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

Implementation

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