Flutter2FAConfig constructor

const Flutter2FAConfig({
  1. bool useSecureStorage = false,
  2. bool allowBiometrics = false,
  3. int totpInterval = 30,
  4. int totpDigits = 6,
  5. String totpAlgorithm = 'SHA1',
  6. Color? backgroundColor,
  7. Color? textColor,
  8. Color? appBarColor,
  9. TextStyle? appBarTitleStyle,
  10. ButtonStyle? primaryButtonStyle,
  11. ButtonStyle? secondaryButtonStyle,
  12. TextStyle? primaryButtonTextStyle,
  13. TextStyle? secondaryButtonTextStyle,
  14. PinTheme? defaultPinTheme,
  15. PinTheme? focusedPinTheme,
  16. 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,
});