Keybinding.from constructor

Keybinding.from(
  1. Iterable<LogicalKeyboardKey> keys, {
  2. bool inclusive = false,
})

Creates a new Keybinding from LogicalKeyboardKeys.

Implementation

factory Keybinding.from(
  Iterable<LogicalKeyboardKey> keys, {
  bool inclusive = false,
}) {
  return Keybinding(keys.map<KeyCode>((key) => KeyCode({key.keyId})).toList(),
      inclusive: inclusive);
}