KeyBinding.withHelp constructor

KeyBinding.withHelp(
  1. List<String> keys,
  2. String keyText,
  3. String desc
)

Creates a key binding with keys and help text.

Implementation

factory KeyBinding.withHelp(List<String> keys, String keyText, String desc) {
  return KeyBinding(
    keys: keys,
    help: Help(key: keyText, desc: desc),
  );
}