JetPhoneField constructor

const JetPhoneField({
  1. Key? key,
  2. required String name,
  3. String? initialValue,
  4. FormFieldValidator<String>? validator,
  5. bool showPrefixIcon = true,
  6. Widget? prefixIcon,
  7. bool autofocus = false,
  8. bool isRequired = true,
  9. String hintText = '',
  10. bool enabled = true,
  11. int minLength = 10,
  12. int maxLength = 15,
  13. String? countryCode,
  14. List<TextInputFormatter>? inputFormatters,
  15. bool allowInternational = true,
  16. String? labelText,
  17. TextStyle? labelStyle,
  18. bool filled = true,
  19. Color? fillColor,
  20. InputBorder? border,
  21. InputBorder? enabledBorder,
  22. InputBorder? focusedBorder,
  23. InputBorder? errorBorder,
  24. InputBorder? disabledBorder,
  25. EdgeInsetsGeometry? contentPadding,
  26. TextStyle? errorStyle,
  27. String? helperText,
  28. TextStyle? helperStyle,
  29. BoxConstraints? constraints,
})

Implementation

const JetPhoneField({
  super.key,
  required this.name,
  this.initialValue,
  this.validator,
  this.showPrefixIcon = true,
  this.prefixIcon,
  this.autofocus = false,
  this.isRequired = true,
  this.hintText = '',
  this.enabled = true,
  this.minLength = 10,
  this.maxLength = 15,
  this.countryCode,
  this.inputFormatters,
  this.allowInternational = true,
  this.labelText,
  this.labelStyle,
  this.filled = true,
  this.fillColor,
  this.border,
  this.enabledBorder,
  this.focusedBorder,
  this.errorBorder,
  this.disabledBorder,
  this.contentPadding,
  this.errorStyle,
  this.helperText,
  this.helperStyle,
  this.constraints,
});