NumberInput constructor
const
NumberInput({
- Key? key,
- required double initialValue,
- required ValueChanged<
double> onChanged, - required Function onSubmitted,
Creates a NumberInput widget.
All parameters are required:
initialValue
: The starting value for the input field.onChanged
: Called when the input value changes.onSubmitted
: Called when the user submits the input.
Implementation
const NumberInput({
Key? key,
required this.initialValue,
required this.onChanged,
required this.onSubmitted,
}) : super(key: key);