LivenessDetectionConfig constructor
LivenessDetectionConfig({
- bool startWithInfoScreen = false,
- int? durationLivenessVerify = 45,
- bool showDurationUiText = false,
- bool useCustomizedLabel = false,
- LivenessDetectionLabelModel? customizedLabel,
- bool isEnableMaxBrightness = true,
- int imageQuality = 100,
- ResolutionPreset cameraResolution = ResolutionPreset.high,
- bool enableCooldownOnFailure = true,
- int maxFailedAttempts = 3,
- int cooldownMinutes = 10,
- bool isEnableSnackBar = true,
- bool shuffleListWithSmileLast = true,
- bool showCurrentStep = false,
- bool isDarkMode = true,
Implementation
LivenessDetectionConfig({
this.startWithInfoScreen = false,
this.durationLivenessVerify = 45,
this.showDurationUiText = false,
this.useCustomizedLabel = false,
this.customizedLabel,
this.isEnableMaxBrightness = true,
this.imageQuality = 100,
this.cameraResolution = ResolutionPreset.high,
this.enableCooldownOnFailure = true,
this.maxFailedAttempts = 3,
this.cooldownMinutes = 10,
this.isEnableSnackBar = true,
this.shuffleListWithSmileLast = true,
this.showCurrentStep = false,
this.isDarkMode = true,
}) : assert(
!useCustomizedLabel || customizedLabel != null,
'customizedLabel must not be null when useCustomizedLabel is true',
);