shortcutBindingsFromChords function

List<ShortcutBinding> shortcutBindingsFromChords(
  1. Iterable<KeyChordBinding> chords
)

Map chord bindings into ShortcutBindings.

Implementation

List<ShortcutBinding> shortcutBindingsFromChords(
  Iterable<KeyChordBinding> chords,
) {
  return [for (final c in chords) ShortcutBinding.fromChord(c)];
}