ZetaStepperInput constructor

const ZetaStepperInput(
  1. {bool rounded = true,
  2. ZetaStepperInputSize size = ZetaStepperInputSize.medium,
  3. int? initialValue,
  4. int? min,
  5. int? max,
  6. ValueChanged<int>? onChange,
  7. Key? key}
)

Creates a new ZetaStepperInput

Implementation

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