ZetaStepperInput constructor
- {bool rounded = true,
- ZetaStepperInputSize size = ZetaStepperInputSize.medium,
- int? initialValue,
- int? min,
- int? max,
- ValueChanged<
int> ? onChange, - 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',
);