KeyCode constructor

const KeyCode(
  1. Set<int> keyIds, {
  2. String? label,
})

A set of keyIds representing a single abstract key.

When included as part of a Keybinding, this KeyCode is acknowledged as pressed when any one of the keyIds is pressed.

keyIds must not be null.

label is optional and exists for the sake of external convenience.

Implementation

const KeyCode(this.keyIds, {this.label});