OtpEntry class final
A stored OTP entry with code, expiry, and attempt tracking.
Properties
- attempts → int
-
Number of failed validation attempts made against this entry.
final
- code → String
-
The generated OTP code.
final
- expiresAt → DateTime
-
UTC timestamp after which this OTP is invalid.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpired → bool
-
Whether this entry has passed its expiresAt threshold.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
incrementAttempts(
) → OtpEntry - Returns a copy with attempts incremented by one.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited