DigitTextField constructor

const DigitTextField({
  1. Key? key,
  2. required String label,
  3. String prefixText = '',
  4. int? maxLength,
  5. TextEditingController? controller,
  6. bool isRequired = false,
  7. TextInputType? textInputType,
  8. List<FilteringTextInputFormatter>? inputFormatter,
  9. String? pattern,
  10. String? validator(
    1. String? value
    )?,
  11. String? message,
  12. FocusNode? focusNode,
  13. TextCapitalization? textCapitalization,
  14. ValueChanged<String>? onChange,
  15. int? maxLines,
  16. AutovalidateMode? autoValidation,
  17. bool obscureText = false,
  18. bool isDisabled = false,
  19. bool readOnly = false,
  20. bool? isFilled,
  21. Widget? suffixIcon,
  22. Widget? prefixIcon,
  23. TextStyle? textStyle,
  24. String? hintText,
})

Implementation

const DigitTextField({
  super.key,
  required this.label,
  this.prefixText = '',
  this.maxLength,
  this.controller,
  this.isRequired = false,
  this.textInputType,
  this.inputFormatter,
  this.pattern,
  this.validator,
  this.message,
  this.focusNode,
  this.textCapitalization,
  this.onChange,
  this.maxLines,
  this.autoValidation,
  this.obscureText = false,
  this.isDisabled = false,
  this.readOnly = false,
  this.isFilled,
  this.suffixIcon,
  this.prefixIcon,
  this.textStyle,
  this.hintText,
});