copyWith method

FaceCaptureState copyWith({
  1. FaceCapturePhase? phase,
  2. CameraController? cameraController,
  3. int? currentStepIndex,
  4. double? holdProgress,
  5. List<CapturedFaceImage>? captured,
  6. bool? faceDetected,
  7. String? errorMessage,
})

Implementation

FaceCaptureState copyWith({
  FaceCapturePhase? phase,
  CameraController? cameraController,
  int? currentStepIndex,
  double? holdProgress,

  List<CapturedFaceImage>? captured,
  bool? faceDetected,
  String? errorMessage,
}) {
  return FaceCaptureState(
    phase: phase ?? this.phase,
    cameraController: cameraController ?? this.cameraController,
    currentStepIndex: currentStepIndex ?? this.currentStepIndex,
    captured: captured ?? this.captured,
    faceDetected: faceDetected ?? this.faceDetected,
    holdProgress: holdProgress ?? this.holdProgress,

    errorMessage: errorMessage,
  );
}