NumberInput constructor

const NumberInput({
  1. Key? key,
  2. required double numberValue,
  3. required String label,
  4. String? errorText,
  5. ValueChanged<double>? onChanged,
  6. String? hintText,
  7. Widget? icon,
  8. int minLines = 1,
  9. int maxLines = 1,
  10. int? maxLength,
  11. bool enabled = true,
  12. bool autoFocus = false,
  13. FocusNode? focusNode,
  14. EdgeInsetsGeometry? contentPadding,
  15. TextInputAction? textInputAction,
  16. List<TextInputFormatter>? inputFormatters,
  17. dynamic onSubmited(
    1. String
    )?,
  18. int precision = 0,
})

Implementation

const NumberInput({
  Key? key,
  required this.numberValue,
  required this.label,
  this.errorText,
  this.onChanged,
  this.hintText,
  this.icon,
  this.minLines = 1,
  this.maxLines = 1,
  this.maxLength,
  this.enabled = true,
  this.autoFocus = false,
  this.focusNode,
  this.contentPadding,
  this.textInputAction,
  this.inputFormatters,
  this.onSubmited,
  this.precision = 0,
}) : super(key: key);