DCChooser<T> constructor

DCChooser<T>(
  1. DCConsole console,
  2. List<T> choices, {
  3. String message = 'Choice: ',
  4. String formatter(
    1. T choice,
    2. int index
    ) = _defaultFormatter,
})

Implementation

DCChooser(
  this.console,
  this.choices, {
  this.message = 'Choice: ',
  this.formatter = _defaultFormatter,
});