M7DetectionConfig constructor

M7DetectionConfig({
  1. required List<M7LivelynessStepItem> steps,
  2. bool startWithInfoScreen = false,
  3. int maxSecToDetect = 15,
  4. bool allowAfterMaxSec = false,
  5. Color? captureButtonColor,
})

Implementation

M7DetectionConfig({
  required this.steps,
  this.startWithInfoScreen = false,
  this.maxSecToDetect = 15,
  this.allowAfterMaxSec = false,
  this.captureButtonColor,
}) {
  assert(
    steps.isNotEmpty,
    '''
Cannot pass an empty array of [M7LivelynessStepItem].
    ''',
  );
}