CellphoneInput constructor

const CellphoneInput({
  1. Key? key,
  2. required TextEditingController controller,
  3. String? initialValue,
  4. FormFieldValidator<String>? validator,
  5. FormFieldSetter<String>? onSaved,
  6. AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
  7. TextInputAction textInputAction = TextInputAction.next,
  8. dynamic onChanged(
    1. String
    )?,
  9. VoidCallback? onTap,
  10. String? helperText,
  11. String? errorText,
  12. bool enabled = true,
  13. bool required = false,
  14. Country? initialCountry,
  15. dynamic onCountryChanged(
    1. Country
    )?,
})

Implementation

const CellphoneInput({
  super.key,
  required this.controller,
  this.initialValue,
  this.validator,
  this.onSaved,
  this.autovalidateMode = AutovalidateMode.disabled,
  this.textInputAction = TextInputAction.next,
  this.onChanged,
  this.onTap,
  this.helperText,
  this.errorText,
  this.enabled = true,
  this.required = false,
  this.initialCountry,
  this.onCountryChanged,
});