RawKeyEventDataWeb constructor Null safety

const RawKeyEventDataWeb(
  1. {required String code,
  2. required String key,
  3. int location = 0,
  4. int metaState = modifierNone,
  5. int keyCode = 0}
)

Creates a key event data structure specific for Web.

The code and metaState arguments must not be null.

Implementation

const RawKeyEventDataWeb({
  required this.code,
  required this.key,
  this.location = 0,
  this.metaState = modifierNone,
  this.keyCode = 0,
})  : assert(code != null),
      assert(metaState != null);