add method

KeyBindings add(
  1. KeyBinding binding
)

Adds a single binding to this collection. Returns a new collection with binding appended to the end.

Implementation

KeyBindings add(KeyBinding binding) {
  return KeyBindings([..._bindings, binding]);
}