NumberField constructor
const
NumberField({
- Key? key,
- TextEditingController? controller,
- String? label,
- String? hint,
- String? validator()?,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - bool enabled = true,
- String? initialValue,
- IconData? icon,
- String? prefix,
- int decimals = 0,
- double? min,
- double? max,
- TextInputAction? textInputAction,
- ValueChanged<
String?> ? onFieldSaved, - 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,
});