NiceTwoFaSetup constructor

const NiceTwoFaSetup({
  1. Key? key,
  2. required String secret,
  3. String? qrCodeUrl,
  4. String? issuer,
  5. String? accountName,
  6. void onVerify(
    1. String code
    )?,
  7. VoidCallback? onCancel,
  8. bool loading = false,
  9. String? error,
  10. List<String> recoveryCodes = const [],
  11. NiceTwoFaStep step = NiceTwoFaStep.setup,
  12. void onStepChange(
    1. NiceTwoFaStep step
    )?,
})

Implementation

const NiceTwoFaSetup({
  super.key,
  required this.secret,
  this.qrCodeUrl,
  this.issuer,
  this.accountName,
  this.onVerify,
  this.onCancel,
  this.loading = false,
  this.error,
  this.recoveryCodes = const [],
  this.step = NiceTwoFaStep.setup,
  this.onStepChange,
});