JetPhoneField constructor
const
JetPhoneField({
- Key? key,
- required String name,
- String? initialValue,
- FormFieldValidator<
String> ? validator, - bool showPrefixIcon = true,
- Widget? prefixIcon,
- bool autofocus = false,
- bool isRequired = true,
- String hintText = '',
- bool enabled = true,
- int minLength = 10,
- int maxLength = 15,
- String? countryCode,
- List<
TextInputFormatter> ? inputFormatters, - bool allowInternational = true,
- String? labelText,
- TextStyle? labelStyle,
- bool filled = true,
- Color? fillColor,
- InputBorder? border,
- InputBorder? enabledBorder,
- InputBorder? focusedBorder,
- InputBorder? errorBorder,
- InputBorder? disabledBorder,
- EdgeInsetsGeometry? contentPadding,
- TextStyle? errorStyle,
- String? helperText,
- TextStyle? helperStyle,
- 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,
});