CameraState class
This class represents the current state of a FaceCameraController.
Constructors
-
CameraState({required int currentCameraLens, required bool isInitialized, required List<
CameraLens> availableCameraLens, required bool alreadyCheckingImage, CameraController? cameraController, DetectedFace? detectedFace}) -
Create a new CameraState instance.
const
- CameraState.uninitialized()
- Create a new CameraState instance that is uninitialized.
Properties
- alreadyCheckingImage → bool
-
final
-
availableCameraLens
→ List<
CameraLens> -
The available cameras.
final
- cameraController → CameraController?
-
Camera dependency controller
final
- currentCameraLens → int
-
The current camera lens in use.
final
- detectedFace → DetectedFace?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Whether the face camera has initialized successfully.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{List< CameraLens> ? availableCameraLens, int? currentCameraLens, int? currentFlashMode, bool? isInitialized, bool? isRunning, bool? alreadyCheckingImage, double? zoomScale, CameraController? cameraController, DetectedFace? detectedFace}) → CameraState - Create a copy of this state with the given parameters.
-
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