PhoneEmailInputWidget constructor
PhoneEmailInputWidget({
- bool showAlternative = true,
- bool persist = false,
- bool valueRequired = false,
- PhoneNumber? initial,
- String? phoneNotice,
- String? emailNotice,
- String? initialEmail,
- String labelFunction(
- bool email
- String? switchToEmailLabel,
- String? switchToPhoneNumberLabel,
- String? emailLabel,
- String? phoneLabel,
- PhoneEmailInputType type = PhoneEmailInputType.phoneNumber,
- required Future<
List< phoneCodesLoader(),PhoneCode> ?> - required void onEmailRead(
- String email
- required void onPhoneNumberRead(
- PhoneNumber phoneNumber
Implementation
PhoneEmailInputWidget({
this.showAlternative: true,
this.persist: false,
this.valueRequired: false,
this.initial,
this.phoneNotice,
this.emailNotice,
this.initialEmail,
this.labelFunction,
this.switchToEmailLabel,
this.switchToPhoneNumberLabel,
this.emailLabel,
this.phoneLabel,
this.type: PhoneEmailInputType.phoneNumber,
required this.phoneCodesLoader,
required this.onEmailRead,
required this.onPhoneNumberRead,
});