UserInterruptException constructor

const UserInterruptException({
  1. KeyEvent? event,
  2. String message = 'User interrupted the prompt via Ctrl+C.',
})

Creates a new UserInterruptException.

Implementation

const UserInterruptException({
  super.event,
  super.message = 'User interrupted the prompt via Ctrl+C.',
}) : super(trigger: PromptExitTrigger.controlC);