continuePrompt static method

KeyBindings continuePrompt({
  1. void onContinue()?,
  2. String hintLabel = 'Enter',
  3. String hintDescription = 'continue',
})

Creates bindings that exit on common "continue" keys (Enter, Esc, Space).

Implementation

static KeyBindings continuePrompt({
  void Function()? onContinue,
  String hintLabel = 'Enter',
  String hintDescription = 'continue',
}) {
  return exitOn(
    keys: {KeyEventType.enter, KeyEventType.esc, KeyEventType.space},
    onExit: onContinue,
    hintLabel: hintLabel,
    hintDescription: hintDescription,
  );
}