DiscreteValuePrompt constructor

DiscreteValuePrompt({
  1. required String title,
  2. int maxValue = 5,
  3. int initial = 3,
  4. PromptTheme theme = PromptTheme.dark,
})

Implementation

DiscreteValuePrompt({
  required this.title,
  this.maxValue = 5,
  this.initial = 3,
  this.theme = PromptTheme.dark,
}) : assert(maxValue > 0);