tab static method

KeyBindings tab({
  1. required void onTab(),
  2. String hintLabel = 'Tab',
  3. String hintDescription = 'switch',
})

Creates tab binding.

Implementation

static KeyBindings tab({
  required void Function() onTab,
  String hintLabel = 'Tab',
  String hintDescription = 'switch',
}) {
  return KeyBindings([
    KeyBinding.single(
      KeyEventType.tab,
      (event) {
        onTab();
        return KeyActionResult.handled;
      },
      hintLabel: hintLabel,
      hintDescription: hintDescription,
    ),
  ]);
}