CameraConfiguration constructor
CameraConfiguration({
- CameraModule cameraModule = CameraModule.BACK,
- List<
double> ? zoomSteps, - double defaultZoomFactor = 1.0,
- bool flashEnabled = false,
- bool minFocusDistanceLock = false,
- bool touchToFocusEnabled = false,
- bool pinchToZoomEnabled = true,
- OrientationLockMode orientationLockMode = OrientationLockMode.NONE,
- CameraPreviewMode cameraPreviewMode = CameraPreviewMode.FILL_IN,
Implementation
CameraConfiguration({
this.cameraModule = CameraModule.BACK,
List<double>? zoomSteps,
this.defaultZoomFactor = 1.0,
this.flashEnabled = false,
this.minFocusDistanceLock = false,
this.touchToFocusEnabled = false,
this.pinchToZoomEnabled = true,
this.orientationLockMode = OrientationLockMode.NONE,
this.cameraPreviewMode = CameraPreviewMode.FILL_IN,
}) : zoomSteps = zoomSteps ?? [1.0, 2.0, 5.0];