CameraValue constructor

const CameraValue({
  1. required bool isInitialized,
  2. String? errorDescription,
  3. Size? previewSize,
  4. required bool isRecordingVideo,
  5. required bool isTakingPicture,
  6. required bool isStreamingImages,
  7. required bool isRecordingPaused,
  8. required FlashMode flashMode,
  9. required ExposureMode exposureMode,
  10. required FocusMode focusMode,
  11. required bool exposurePointSupported,
  12. required bool focusPointSupported,
  13. required DeviceOrientation deviceOrientation,
  14. required CameraDescription description,
  15. DeviceOrientation? lockedCaptureOrientation,
  16. DeviceOrientation? recordingOrientation,
  17. bool isPreviewPaused = false,
  18. DeviceOrientation? previewPauseOrientation,
})

Creates a new camera controller state.

Implementation

const CameraValue({
  required this.isInitialized,
  this.errorDescription,
  this.previewSize,
  required this.isRecordingVideo,
  required this.isTakingPicture,
  required this.isStreamingImages,
  required bool isRecordingPaused,
  required this.flashMode,
  required this.exposureMode,
  required this.focusMode,
  required this.exposurePointSupported,
  required this.focusPointSupported,
  required this.deviceOrientation,
  required this.description,
  this.lockedCaptureOrientation,
  this.recordingOrientation,
  this.isPreviewPaused = false,
  this.previewPauseOrientation,
}) : _isRecordingPaused = isRecordingPaused;