FaceCaptureState class

Plain, immutable snapshot of where the capture flow currently is. No base-class dependency (no Equatable) — just a value holder with a copyWith, which is all a package needs.

Constructors

FaceCaptureState({FaceCapturePhase phase = FaceCapturePhase.initializing, CameraController? cameraController, int currentStepIndex = 0, List<CapturedFaceImage> captured = const [], bool faceDetected = false, double holdProgress = 0.0, String? errorMessage})
const

Properties

cameraController → CameraController?
final
captured → List<CapturedFaceImage>
final
currentStepIndex → int
final
errorMessage → String?
final
faceDetected → bool
final
hashCode → int
The hash code for this object.
no setterinherited
holdProgress → double
final
phase → FaceCapturePhase
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({FaceCapturePhase? phase, CameraController? cameraController, int? currentStepIndex, double? holdProgress, List<CapturedFaceImage>? captured, bool? faceDetected, String? errorMessage}) → FaceCaptureState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited