ZetaStepperInput constructor
- Key? key,
- bool? rounded,
- ZetaStepperInputSize size = ZetaStepperInputSize.medium,
- int? value,
- @Deprecated('Use value instead. ' 'Deprecated in 0.15.0') int? initialValue,
- int? min,
- int? max,
- ValueChanged<
int> ? onChange, - String? semanticDecrement,
- 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',
);