NumberField constructor

const NumberField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? label,
  4. String? hint,
  5. String? validator(
    1. String?
    )?,
  6. ValueChanged<String>? onChanged,
  7. ValueChanged<String>? onSubmitted,
  8. bool enabled = true,
  9. String? initialValue,
  10. IconData? icon,
  11. String? prefix,
  12. int decimals = 0,
  13. double? min,
  14. double? max,
  15. TextInputAction? textInputAction,
  16. ValueChanged<String?>? onFieldSaved,
  17. Widget? suffixIcon,
})

Implementation

const NumberField({
  super.key,
  this.controller,
  this.label,
  this.hint,
  this.validator,
  this.onChanged,
  this.onSubmitted,
  this.enabled = true,
  this.initialValue,
  this.icon,
  this.prefix,
  this.decimals = 0,
  this.min,
  this.max,
  this.textInputAction,
  this.onFieldSaved,
  this.suffixIcon,
});