CameraValue constructor
const
CameraValue({
- required bool isInitialized,
- String? errorDescription,
- Size? previewSize,
- required bool isRecordingVideo,
- required bool isTakingPicture,
- required bool isStreamingImages,
- required bool isRecordingPaused,
- required FlashMode flashMode,
- required ExposureMode exposureMode,
- required FocusMode focusMode,
- required bool exposurePointSupported,
- required bool focusPointSupported,
- required DeviceOrientation deviceOrientation,
- required CameraDescription description,
- DeviceOrientation? lockedCaptureOrientation,
- DeviceOrientation? recordingOrientation,
- bool isPreviewPaused = false,
- 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;