setConfig method
dynamic
setConfig({
- dynamic appName,
- dynamic appEmail,
- dynamic userEmail,
- dynamic otpLength,
- dynamic otpType,
Function use to config Email OTP
Implementation
setConfig({appName, appEmail, userEmail, otpLength, otpType}) {
_appName = appName;
_appEmail = appEmail;
_userEmail = userEmail;
_otpLength = otpLength;
switch (otpType) {
case OTPType.digitsOnly:
_type = "digits";
break;
case OTPType.stringOnly:
_type = "string";
break;
case OTPType.mixed:
_type = "mixed";
break;
}
}