ZetaStepperInput constructor

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

Creates a new ZetaStepperInput

Implementation

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