CameraValue class Null safety

The state of a CameraController.

Constructors

CameraValue({bool? isInitialized, String? errorDescription, Size? previewSize, bool? isRecordingVideo, bool? isTakingPicture, bool? isStreamingImages, bool? autoFocusEnabled, FlashMode? flashMode, bool? isRecordingPaused})
const
CameraValue.uninitialized()
const

Properties

aspectRatio double
Convenience getter for previewSize.height / previewSize.width.
read-only
autoFocusEnabled bool?
True when autofocus is on.
final
errorDescription String?
final
flashMode FlashMode?
FlashMode
final
hasError bool
read-only
hashCode int
The hash code for this object.
read-onlyinherited
isInitialized bool?
True after CameraController.initialize has completed successfully.
final
isRecordingPaused bool
True when camera isRecordingVideo and recording is paused.
read-only
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
isTakingPicture bool?
True when a picture capture request has been sent but as not yet returned.
final
previewSize Size?
The size of the preview in pixels.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

copyWith({bool? isInitialized, bool? isRecordingVideo, bool? isTakingPicture, bool? isStreamingImages, String? errorDescription, Size? previewSize, bool? isRecordingPaused, bool? autoFocusEnabled, FlashMode? flashMode}) CameraValue
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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