ListChooser.std constructor
ListChooser.std(
- StdinService _std_input,
- StdoutService _std_output,
- List<
String> ? items, {
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;
}
}