Flutter2FAConfig constructor
const
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,
Creates a custom Flutter2FAConfig instance.
Implementation
const Flutter2FAConfig({
this.useSecureStorage = false,
this.allowBiometrics = false,
this.totpInterval = 30,
this.totpDigits = 6,
this.totpAlgorithm = 'SHA1',
this.backgroundColor,
this.textColor,
this.appBarColor,
this.appBarTitleStyle,
this.primaryButtonStyle,
this.secondaryButtonStyle,
this.primaryButtonTextStyle,
this.secondaryButtonTextStyle,
this.defaultPinTheme,
this.focusedPinTheme,
this.errorPinTheme,
});