copyWith method
FaceCaptureState
copyWith({
- FaceCapturePhase? phase,
- CameraController? cameraController,
- int? currentStepIndex,
- double? holdProgress,
- List<
CapturedFaceImage> ? captured, - bool? faceDetected,
- 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,
);
}