Auth constructor

Auth({
  1. List<LoginProvider> loginProviders = const [],
  2. LoginCallback? onLogin,
  3. SignupCallback? onSignup,
  4. RecoverCallback? onRecoverPassword,
  5. ConfirmRecoverCallback? onConfirmRecover,
  6. ConfirmSignupCallback? onConfirmSignup,
  7. ConfirmSignupRequiredCallback? confirmSignupRequired,
  8. SignupCallback? onResendCode,
  9. BeforeAdditionalFieldsCallback? beforeAdditionalFieldsCallback,
  10. String email = '',
  11. String password = '',
  12. String confirmPassword = '',
  13. AuthMode initialAuthMode = AuthMode.login,
  14. List<TermOfService> termsOfService = const [],
})

Implementation

Auth({
  this.loginProviders = const [],
  this.onLogin,
  this.onSignup,
  this.onRecoverPassword,
  this.onConfirmRecover,
  this.onConfirmSignup,
  this.confirmSignupRequired,
  this.onResendCode,
  this.beforeAdditionalFieldsCallback,
  String email = '',
  String password = '',
  String confirmPassword = '',
  AuthMode initialAuthMode = AuthMode.login,
  this.termsOfService = const [],
})  : _email = email,
      _password = password,
      _confirmPassword = confirmPassword,
      _mode = initialAuthMode;