AuthFactor constructor
AuthFactor({
- AuthFactorState? state,
- AuthFactorOTP? otp,
- AuthFactorU2F? u2f,
- AuthFactorOTPSMS? otpSms,
- AuthFactorOTPEmail? otpEmail,
Implementation
factory AuthFactor({
AuthFactorState? state,
AuthFactorOTP? otp,
AuthFactorU2F? u2f,
AuthFactorOTPSMS? otpSms,
AuthFactorOTPEmail? otpEmail,
}) {
final result = create();
if (state != null) result.state = state;
if (otp != null) result.otp = otp;
if (u2f != null) result.u2f = u2f;
if (otpSms != null) result.otpSms = otpSms;
if (otpEmail != null) result.otpEmail = otpEmail;
return result;
}