back static method

KeyBindings back({
  1. void onBack()?,
  2. String hintLabel = '← / Esc / Enter',
  3. String hintDescription = 'back',
})

Creates "back" bindings (Left arrow, Esc, Enter) for viewer scenarios.

Implementation

static KeyBindings back({
  void Function()? onBack,
  String hintLabel = '← / Esc / Enter',
  String hintDescription = 'back',
}) {
  return exitOn(
    keys: {
      KeyEventType.arrowLeft,
      KeyEventType.esc,
      KeyEventType.enter,
      KeyEventType.ctrlC,
    },
    onExit: onBack,
    hintLabel: hintLabel,
    hintDescription: hintDescription,
  );
}