AdvCamera constructor

const AdvCamera(
  1. {Key? key,
  2. CameraType initialCameraType = CameraType.rear,
  3. CameraPreviewRatio cameraPreviewRatio = CameraPreviewRatio.r16_9,
  4. CameraSessionPreset cameraSessionPreset = CameraSessionPreset.photo,
  5. FlashType flashType = FlashType.auto,
  6. bool bestPictureSize = true,
  7. CameraCreatedCallback? onCameraCreated,
  8. ImageCapturedCallback? onImageCaptured,
  9. String? fileNamePrefix,
  10. Color? focusRectColor,
  11. int? focusRectSize,
  12. bool ignorePermission = false,
  13. String? savePath,
  14. int? maxSize}
)

Implementation

const AdvCamera({
  Key? key,
  CameraType initialCameraType = CameraType.rear,
  CameraPreviewRatio cameraPreviewRatio = CameraPreviewRatio.r16_9,
  CameraSessionPreset cameraSessionPreset = CameraSessionPreset.photo,
  FlashType flashType = FlashType.auto,
  bool bestPictureSize = true,
  this.onCameraCreated,
  this.onImageCaptured,
  this.fileNamePrefix,
  this.focusRectColor,
  this.focusRectSize,
  this.ignorePermission = false,
  this.savePath,
  this.maxSize,
})  : this.initialCameraType = initialCameraType,
      this.cameraPreviewRatio = cameraPreviewRatio,
      this.cameraSessionPreset = cameraSessionPreset,
      this.flashType = flashType,
      this.bestPictureSize = bestPictureSize,
      super(key: key);