Flutter2FAConfig class

Configuration options for Flutter 2FA v1.0.5

Constructors

Flutter2FAConfig({bool useSecureStorage = false, bool allowBiometrics = false, int totpInterval = 30, int totpDigits = 6, String totpAlgorithm = 'SHA1', Color? backgroundColor, Color? textColor, Color? appBarColor, TextStyle? appBarTitleStyle, ButtonStyle? primaryButtonStyle, ButtonStyle? secondaryButtonStyle, TextStyle? primaryButtonTextStyle, TextStyle? secondaryButtonTextStyle, PinTheme? defaultPinTheme, PinTheme? focusedPinTheme, PinTheme? errorPinTheme})
const

Properties

allowBiometrics → bool
Whether to enable biometric authentication (Face ID / Touch ID / fingerprint) for verification.
final
appBarColor → Color?
final
appBarTitleStyle → TextStyle?
final
backgroundColor → Color?
final
defaultPinTheme → PinTheme?
final
errorPinTheme → PinTheme?
final
focusedPinTheme → PinTheme?
final
hashCode → int
The hash code for this object.
no setterinherited
primaryButtonStyle → ButtonStyle?
final
primaryButtonTextStyle → TextStyle?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryButtonStyle → ButtonStyle?
final
secondaryButtonTextStyle → TextStyle?
final
textColor → Color?
final
totpAlgorithm → String
The hashing algorithm used for TOTP code generation ('SHA1', 'SHA256', 'SHA512').
final
totpDigits → int
The length of TOTP verification codes (default: 6).
final
totpInterval → int
The time step interval for TOTP codes in seconds (default: 30).
final
useSecureStorage → bool
Whether to use secure encrypted storage (Keychain/Keystore) to store secrets.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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