KeyBinding constructor

const KeyBinding({
  1. required Set<KeyEventType> keys,
  2. required KeyActionResult action(
    1. KeyEvent event
    ),
  3. bool charMatcher(
    1. String char
    )?,
  4. String? hintLabel,
  5. String? hintDescription,
})

Creates a binding that matches the provided keys. For convenience, prefer the single, multi, or char factories when possible.

Implementation

const KeyBinding({
  required this.keys,
  required this.action,
  this.charMatcher,
  this.hintLabel,
  this.hintDescription,
});