KeyBinding constructor

KeyBinding({
  1. List<String>? keys,
  2. Help? help,
  3. bool disabled = false,
  4. Cmd? handler()?,
  5. void action()?,
})

Creates a new key binding.

Implementation

KeyBinding({
  List<String>? keys,
  Help? help,
  bool disabled = false,
  this.handler,
  this.action,
}) : keys = keys ?? [],
     help = help ?? const Help(),
     _disabled = disabled;