Key.char constructor

Key.char(
  1. String char, {
  2. bool ctrl = false,
  3. bool alt = false,
  4. bool shift = false,
})

Creates a key from a single character.

Implementation

factory Key.char(
  String char, {
  bool ctrl = false,
  bool alt = false,
  bool shift = false,
}) {
  return Key(
    KeyType.runes,
    runes: uni.codePoints(char),
    ctrl: ctrl,
    alt: alt,
    shift: shift,
  );
}