CameraValue class

The state of a CameraController.

Constructors

CameraValue({required bool isInitialized, String? errorDescription, Size? previewSize, required int previewQuarterTurns, required bool isRecordingVideo, required bool isTakingPicture, required bool isStreamingImages, required bool isStreamingVideoRtmp, required bool isRecordingPaused, required bool isStreamingPaused})
const
CameraValue.uninitialized()
const

Properties

aspectRatio double
Convenience getter for previewSize.height / previewSize.width.
no setter
errorDescription String?
final
hasError bool
no setter
hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
True after CameraController.initialize has completed successfully.
final
isRecordingPaused bool
True when camera isRecordingVideo and recording is paused.
no setter
isRecordingVideo bool
True when the camera is recording (not the same as previewing).
final
isStreamingImages bool
True when images from the camera are being streamed.
final
isStreamingPaused bool
True when camera isRecordingVideo and streaming is paused.
no setter
isStreamingVideoRtmp bool
True when the camera is recording (not the same as previewing).
final
isTakingPicture bool
True when a picture capture request has been sent but as not yet returned.
final
previewQuarterTurns int
The amount to rotate the preview by in quarter turns.
final
previewSize Size?
The size of the preview in pixels.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? isInitialized, bool? isRecordingVideo, bool? isStreamingVideoRtmp, bool? isTakingPicture, bool? isStreamingImages, String? errorDescription, Size? previewSize, int? previewQuarterTurns, bool? isRecordingPaused, bool? isStreamingPaused}) CameraValue
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited