RawKeyEventDataMacOs constructor

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

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);