IntlPhoneField constructor

const IntlPhoneField({
  1. Key? key,
  2. String? initialCountryCode,
  3. bool obscureText = false,
  4. TextAlign textAlign = TextAlign.left,
  5. VoidCallback? onTap,
  6. bool readOnly = false,
  7. String? initialValue,
  8. TextInputType keyboardType = TextInputType.number,
  9. bool autoValidate = true,
  10. TextEditingController? controller,
  11. FocusNode? focusNode,
  12. InputDecoration? decoration,
  13. TextStyle? style,
  14. void onSubmitted(
    1. String
    )?,
  15. FormFieldValidator<String>? validator,
  16. ValueChanged<MobileNumberInfo>? onChanged,
  17. FormFieldSetter<MobileNumberInfo>? onSaved,
  18. bool showDropdownIcon = true,
  19. BoxDecoration dropdownDecoration = const BoxDecoration(),
  20. List<TextInputFormatter>? inputFormatters,
  21. bool enabled = true,
  22. Brightness keyboardAppearance = Brightness.light,
  23. String searchText = 'Search by Country Name',
  24. Color? countryCodeTextColor,
  25. Color? dropDownArrowColor,
})

Implementation

const IntlPhoneField({
  super.key,
  this.initialCountryCode,
  this.obscureText = false,
  this.textAlign = TextAlign.left,
  this.onTap,
  this.readOnly = false,
  this.initialValue,
  this.keyboardType = TextInputType.number,
  this.autoValidate = true,
  this.controller,
  this.focusNode,
  this.decoration,
  this.style,
  this.onSubmitted,
  this.validator,
  this.onChanged,
  this.onSaved,
  this.showDropdownIcon = true,
  this.dropdownDecoration = const BoxDecoration(),
  this.inputFormatters,
  this.enabled = true,
  this.keyboardAppearance = Brightness.light,
  this.searchText = 'Search by Country Name',
  this.countryCodeTextColor,
  this.dropDownArrowColor,
});