GlassStepper constructor

const GlassStepper({
  1. Key? key,
  2. required double value,
  3. required ValueChanged<double>? onChanged,
  4. double min = 0,
  5. double max = 100,
  6. double step = 1,
  7. String? semanticLabel,
  8. FocusNode? focusNode,
  9. bool autofocus = false,
})

Creates a stepper; max must not be below min, and step must be positive.

Implementation

const GlassStepper({
  super.key,
  required this.value,
  required this.onChanged,
  this.min = 0,
  this.max = 100,
  this.step = 1,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
}) : assert(max >= min),
     assert(step > 0);