CameraPicker constructor

const CameraPicker({
  1. Key? key,
  2. bool enableRecording = false,
  3. bool onlyEnableRecording = false,
  4. bool enableAudio = true,
  5. bool enableSetExposure = true,
  6. bool enableExposureControlOnPoint = true,
  7. bool enablePinchToZoom = true,
  8. bool enablePullToZoomInRecord = true,
  9. bool shouldDeletePreviewFile = false,
  10. bool shouldLockPortrait = true,
  11. Duration? maximumRecordingDuration = const Duration(seconds: 15),
  12. ThemeData? theme,
  13. ResolutionPreset resolutionPreset = ResolutionPreset.max,
  14. ImageFormatGroup imageFormatGroup = ImageFormatGroup.unknown,
  15. int cameraQuarterTurns = 0,
  16. Widget foregroundBuilder(
    1. CameraValue
    )?,
  17. EntitySaveCallback? onEntitySaving,
})

Implementation

const CameraPicker({
  Key? key,
  this.enableRecording = false,
  this.onlyEnableRecording = false,
  this.enableAudio = true,
  this.enableSetExposure = true,
  this.enableExposureControlOnPoint = true,
  this.enablePinchToZoom = true,
  this.enablePullToZoomInRecord = true,
  this.shouldDeletePreviewFile = false,
  this.shouldLockPortrait = true,
  this.maximumRecordingDuration = const Duration(seconds: 15),
  this.theme,
  this.resolutionPreset = ResolutionPreset.max,
  this.imageFormatGroup = ImageFormatGroup.unknown,
  this.cameraQuarterTurns = 0,
  this.foregroundBuilder,
  this.onEntitySaving,
})  : assert(
        enableRecording == true || onlyEnableRecording != true,
        'Recording mode error.',
      ),
      super(key: key);