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