ListChooser.std constructor

ListChooser.std(
  1. StdinService _std_input,
  2. StdoutService _std_output,
  3. List<String>? items, {
  4. bool navigationMode = false,
})

Named constructor mostly for unit testing. For context and an example see CLI_Dialog, README.md and the test/ folder.

Implementation

ListChooser.std(this._std_input, this._std_output, this.items,
    {this.navigationMode = false}) {
  _checkItems();
  if (stdin.hasTerminal) {
    stdin.echoMode = false;
    stdin.lineMode = false;
  }
}