GNumberField constructor

GNumberField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String labelText,
  4. String hintText = '',
  5. TextInputAction textInputAction = TextInputAction.next,
  6. List<TextInputFormatter>? inputFormatters,
  7. String? validator(
    1. String?
    )?,
  8. void onChanged(
    1. String
    )?,
  9. int? minValue,
  10. 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,
     );