ZetaStepperInput constructor

const ZetaStepperInput({
  1. Key? key,
  2. bool? rounded,
  3. ZetaStepperInputSize size = ZetaStepperInputSize.medium,
  4. int? value,
  5. int? min,
  6. int? max,
  7. ValueChanged<int>? onChange,
  8. String? semanticDecrement,
  9. String? semanticIncrement,
})

Creates a new ZetaStepperInput

Implementation

const ZetaStepperInput({
  super.key,
  super.rounded,
  this.size = ZetaStepperInputSize.medium,
  this.value,
  this.min,
  this.max,
  this.onChange,
  this.semanticDecrement,
  this.semanticIncrement,
}) : assert(
        (min == null || (value ?? 0) >= min) && (max == null || (value ?? 0) <= max),
        'Initial value must be inside given min and max values',
      );