CameraConfiguration constructor

CameraConfiguration({
  1. CameraModule cameraModule = CameraModule.BACK,
  2. List<double>? zoomSteps,
  3. double defaultZoomFactor = 1.0,
  4. bool flashEnabled = false,
  5. bool minFocusDistanceLock = false,
  6. bool touchToFocusEnabled = false,
  7. bool pinchToZoomEnabled = true,
  8. OrientationLockMode orientationLockMode = OrientationLockMode.NONE,
  9. 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];