ListChooser constructor

ListChooser(
  1. List<String>? items, {
  2. bool navigationMode = false,
})

Default constructor for the list chooser. It is as simple as passing your items as a List of strings

Implementation

ListChooser(this.items, {this.navigationMode = false}) {
  _checkItems();
  //relevant when running from IntelliJ console pane for example
  if (stdin.hasTerminal) {
    // lineMode must be true to set echoMode in Windows
    // see https://github.com/dart-lang/sdk/issues/28599
    stdin.echoMode = false;
    stdin.lineMode = false;
  }
}