LivenessDetectionConfig constructor

LivenessDetectionConfig({
  1. bool startWithInfoScreen = false,
  2. int? durationLivenessVerify = 45,
  3. bool showDurationUiText = false,
  4. bool useCustomizedLabel = false,
  5. LivenessDetectionLabelModel? customizedLabel,
  6. bool isEnableMaxBrightness = true,
  7. int imageQuality = 100,
  8. ResolutionPreset cameraResolution = ResolutionPreset.high,
  9. bool enableCooldownOnFailure = true,
  10. int maxFailedAttempts = 3,
  11. int cooldownMinutes = 10,
  12. bool isEnableSnackBar = true,
  13. bool shuffleListWithSmileLast = true,
  14. bool showCurrentStep = false,
  15. 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',
     );