NumberPickerFormField constructor
Implementation
NumberPickerFormField({
required FormFieldSetter<int> super.onSaved,
required FormFieldValidator<int> super.validator,
super.key,
void Function(int value)? onChanged,
int super.initialValue = 0,
int minValue = 0,
int maxValue = 100,
Axis axis = Axis.vertical,
}) : super(
builder: (FormFieldState<int> state) => NumberPicker(
minValue: minValue,
maxValue: maxValue,
value: initialValue,
onChanged: (int value) {
onChanged?.call(value);
state.didChange(value);
},
itemHeight: 35,
itemWidth: 35,
itemCount: 5,
axis: axis,
),
);