Key.fromRune constructor

Key.fromRune(
  1. int rune, {
  2. bool ctrl = false,
  3. bool alt = false,
  4. bool shift = false,
})

Creates a key from a single rune.

Implementation

factory Key.fromRune(
  int rune, {
  bool ctrl = false,
  bool alt = false,
  bool shift = false,
}) {
  return Key(
    KeyType.runes,
    runes: [rune],
    ctrl: ctrl,
    alt: alt,
    shift: shift,
  );
}