PhoneField constructor
const
PhoneField({
- Key? key,
- TextEditingController? controller,
- String label = 'Phone',
- String? hint = '+1 555 000 0000',
- String? validator()?,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - bool enabled = true,
- String? initialValue,
- String countryCode = '+1',
- IconData? icon,
- TextInputAction? textInputAction,
- ValueChanged<
String?> ? onFieldSaved, - 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,
});