PhoneField constructor

const PhoneField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String label = 'Phone',
  4. String? hint = '+1 555 000 0000',
  5. String? validator(
    1. String?
    )?,
  6. ValueChanged<String>? onChanged,
  7. ValueChanged<String>? onSubmitted,
  8. bool enabled = true,
  9. String? initialValue,
  10. String countryCode = '+1',
  11. IconData? icon,
  12. TextInputAction? textInputAction,
  13. ValueChanged<String?>? onFieldSaved,
  14. bool required = false,
})

Implementation

const PhoneField({
  super.key,
  this.controller,
  this.label = 'Phone',
  this.hint = '+1 555 000 0000',
  this.validator,
  this.onChanged,
  this.onSubmitted,
  this.enabled = true,
  this.initialValue,
  this.countryCode = '+1',
  this.icon,
  this.textInputAction,
  this.onFieldSaved,
  this.required = false,
});