FirebasePhoneAuthHandler constructor

const FirebasePhoneAuthHandler({
  1. Key? key,
  2. required String phoneNumber,
  3. required Widget builder(
    1. BuildContext,
    2. FirebasePhoneAuthController
    ),
  4. OnLoginSuccess? onLoginSuccess,
  5. OnLoginFailed? onLoginFailed,
  6. OnError? onError,
  7. VoidCallback? onCodeSent,
  8. bool signOutOnSuccessfulVerification = false,
  9. bool sendOtpOnInitialize = true,
  10. bool linkWithExistingUser = false,
  11. Duration autoRetrievalTimeOutDuration = FirebasePhoneAuthController.kAutoRetrievalTimeOutDuration,
  12. Duration otpExpirationDuration = FirebasePhoneAuthController.kAutoRetrievalTimeOutDuration,
  13. RecaptchaVerifier? recaptchaVerifierForWebProvider(
    1. bool
    )?,
})

Implementation

const FirebasePhoneAuthHandler({
  Key? key,
  required this.phoneNumber,
  required this.builder,
  this.onLoginSuccess,
  this.onLoginFailed,
  this.onError,
  this.onCodeSent,
  this.signOutOnSuccessfulVerification = false,
  this.sendOtpOnInitialize = true,
  this.linkWithExistingUser = false,
  this.autoRetrievalTimeOutDuration =
      FirebasePhoneAuthController.kAutoRetrievalTimeOutDuration,
  this.otpExpirationDuration =
      FirebasePhoneAuthController.kAutoRetrievalTimeOutDuration,
  this.recaptchaVerifierForWebProvider,
}) : super(key: key);