NiceTwoFaSetup constructor
const
NiceTwoFaSetup({
- Key? key,
- required String secret,
- String? qrCodeUrl,
- String? issuer,
- String? accountName,
- void onVerify(
- String code
- VoidCallback? onCancel,
- bool loading = false,
- String? error,
- List<
String> recoveryCodes = const [], - NiceTwoFaStep step = NiceTwoFaStep.setup,
- void onStepChange(
- 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,
});