promptShown method

  1. @override
void promptShown(
  1. String question
)

A prompt asking question is about to take its answer: its row is on the screen and takes keys, or a line is about to be read. Nothing happens on a terminal of the process; a terminal of a test answers it.

Implementation

@override
void promptShown(String question) {
  onPrompt?.call(question);
  if (_answers.isNotEmpty) {
    type(_answers.removeAt(0));
  }
}