GpSmartLoginInput constructor

const GpSmartLoginInput({
  1. Key? key,
  2. required TextEditingController controller,
  3. ValueChanged<String>? onChanged,
  4. ValueChanged<GpSmartLoginValue>? onValueChanged,
  5. FormFieldValidator<String>? validator,
  6. GpSmartLoginMode mode = GpSmartLoginMode.auto,
  7. String initialCountryCode = 'US',
  8. bool enabled = true,
  9. bool isLoading = false,
  10. String emailHintText = 'user@example.com',
  11. String phoneHintText = '987 654 321',
  12. String emailLabelText = 'Email',
  13. String phoneLabelText = 'Phone number',
  14. 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',
});