VerificationController class
State + behaviour of the verification dialog, independent of how it is
drawn. The dialog widget listens to this and asks the active
AuthyoStyle to render each slot.
- Inheritance
-
- Object
- ChangeNotifier
- VerificationController
Constructors
- VerificationController({required String to, required AuthyoResult sendResult, required int resendTimerSeconds, required AuthyoWidgetConfig config, int? otpLength, bool rememberMeEnabled = false, AuthyoService? service})
Properties
- canResend ↔ bool
-
True once the OTP has expired: the resend options replace the timer.
getter/setter pair
- completed ↔ AuthyoResult?
-
Set once verification (OTP or social) succeeds.
getter/setter pair
- config → AuthyoWidgetConfig
-
Remote configuration (channels, social logins…).
final
- countdownLabel → String
-
m:sscountdown label.no setter - countdownSeconds → int
-
Seconds the countdown starts from.
no setter
- errorMessage ↔ String?
-
Last error message to surface to the user (cleared on next action).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- infoMessage ↔ String?
-
Last informational message (e.g. "OTP sent").
getter/setter pair
- isEmail → bool
-
no setter
- isLoading ↔ bool
-
getter/setter pair
- maskedTarget → String
-
+91XXXXXX1234/abXXXX@domainfor the "sent to" line.no setter - maskId ↔ String?
-
getter/setter pair
- otp ↔ String
-
getter/setter pair
- otpLength → int?
-
Expected OTP length, used to cap the input. Null = unknown.
final
- rememberMe ↔ bool
-
"Remember me" checkbox state.
getter/setter pair
- rememberMeEnabled → bool
-
Dashboard "Remember me" option (from the resolved theme). When false
the checkbox is never shown, the flag is never sent and nothing is
stored on the device.
final
-
resendChannels
→ List<
AuthwayEnum> -
Channels offered for "resend". Uses the dashboard configuration when
available; falls back to every channel valid for the target type.
no setter
- resendTimerSeconds → int
-
Dashboard "resend button timer" (seconds, 0 = not set). Like the web
widget it is sent to the server as the new expiry when resending and
used as the countdown only when the server reply carries no expiry.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondsRemaining ↔ int
-
getter/setter pair
-
no setter
- to → String
-
Phone number or email the OTP was sent to.
final
- verified ↔ bool
-
True after a successful verification (OTP or social) while the
success badge is shown.
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
resend(
AuthwayEnum channel) → Future< AuthyoResult> -
start(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
verify(
) → Future< AuthyoResult>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited