GNumberField constructor
GNumberField({
- Key? key,
- required TextEditingController controller,
- required String labelText,
- String hintText = '',
- TextInputAction textInputAction = TextInputAction.next,
- List<
TextInputFormatter> ? inputFormatters, - String? validator()?,
- void onChanged()?,
- int? minValue,
- int? maxValue,
Implementation
GNumberField({
super.key,
required super.controller,
required super.labelText,
super.hintText,
super.textInputAction,
List<TextInputFormatter>? inputFormatters,
super.validator,
super.onChanged,
this.minValue,
this.maxValue,
}) : super(
keyboardType: TextInputType.number,
inputFormatters: [
FilteringTextInputFormatter.digitsOnly,
...?inputFormatters,
],
prefixIcon: Icons.onetwothree,
);