ListChooser.std constructor

ListChooser.std(
  1. StdinService _stdInput,
  2. StdoutService _stdOutput,
  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._stdInput, this._stdOutput, this.items,
    {this.navigationMode = false}) {
  _checkItems();
  if (stdin.hasTerminal) {
    stdin.echoMode = false;
    stdin.lineMode = false;
  }
}