GpSmartLoginInput constructor
const
GpSmartLoginInput({
- Key? key,
- required TextEditingController controller,
- ValueChanged<
String> ? onChanged, - ValueChanged<
GpSmartLoginValue> ? onValueChanged, - FormFieldValidator<
String> ? validator, - GpSmartLoginMode mode = GpSmartLoginMode.auto,
- String initialCountryCode = 'US',
- bool enabled = true,
- bool isLoading = false,
- String emailHintText = 'user@example.com',
- String phoneHintText = '987 654 321',
- String emailLabelText = 'Email',
- String phoneLabelText = 'Phone number',
- String neutralLabelText = 'Email or phone',
Implementation
const GpSmartLoginInput({
super.key,
required this.controller,
this.onChanged,
this.onValueChanged,
this.validator,
this.mode = GpSmartLoginMode.auto,
this.initialCountryCode = 'US',
this.enabled = true,
this.isLoading = false,
this.emailHintText = 'user@example.com',
this.phoneHintText = '987 654 321',
this.emailLabelText = 'Email',
this.phoneLabelText = 'Phone number',
this.neutralLabelText = 'Email or phone',
});