OTPAuth class abstract

Represents an abstract class for implementing One-Time Password (OTP) authentication methods in Dart.

This class provides a foundation for creating variable length OTP generation algorithms. Subclasses must implement the value method to generate OTP values based on a specific algorithm.

Constructors

OTPAuth.new(int digits, {String? label, String? issuer})
const

Properties

digits int
The number of digits in the generated OTP
final
hashCode int
The hash code for this object.
no setterinherited
issuer String?
final
label String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
value() int
Generates the next OTP value
valueString() String
Returns the next OTP value as string

Operators

operator ==(Object other) bool
The equality operator.
inherited