KeyMap constructor

KeyMap({
  1. List<KeyBinding>? shortHelp,
  2. List<List<KeyBinding>>? fullHelp,
  3. List<({String id, KeyBinding key, KeyBinding prefix})>? chords,
})

Creates a new key map.

Implementation

KeyMap({
  List<KeyBinding>? shortHelp,
  List<List<KeyBinding>>? fullHelp,
  this.chords,
}) : shortHelp = shortHelp ?? [],
     fullHelp = fullHelp ?? [];