NumberInput constructor

const NumberInput({
  1. Key? key,
  2. required double initialValue,
  3. required ValueChanged<double> onChanged,
  4. 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);