PromptRunner<T> constructor

PromptRunner<T>({
  1. required Terminal terminal,
  2. required Widget widget,
  3. int? height,
  4. bool completeOnEnter = true,
  5. bool onKeyEvent(
    1. KeyEvent event
    )?,
  6. T onComplete()?,
})

Creates a new PromptRunner.

Implementation

PromptRunner({
  required this.terminal,
  required this.widget,
  this.height,
  this.completeOnEnter = true,
  this.onKeyEvent,
  this.onComplete,
});