UCameraValue class

Immutable snapshot of a session, exposed through UCameraController.value.

Constructors

UCameraValue({UCameraState state = UCameraState.uninitialized, UCameraDevice? device, UCameraCapabilities capabilities = UCameraCapabilities.none, UCameraSize previewSize = const UCameraSize(0, 0), int? textureId, String? viewType, int sensorOrientation = 0, int displayRotation = 0, UCameraOrientation deviceOrientation = UCameraOrientation.portraitUp, UCameraOrientation? lockedOrientation, UFlashMode flash = UFlashMode.off, bool torchOn = false, double zoom = 1, double exposureOffset = 0, UExposureMode exposureMode = UExposureMode.auto, UFocusMode focusMode = UFocusMode.continuousPicture, UWhiteBalanceMode whiteBalance = UWhiteBalanceMode.auto, double? iso, Duration? exposureDuration, UStabilizationMode stabilization = UStabilizationMode.auto, UHdrMode hdr = UHdrMode.off, UNightMode nightMode = UNightMode.off, Duration recordingDuration = Duration.zero, int recordingBytes = 0, bool isStreamingFrames = false, bool isScanning = false, bool mirrored = false, Offset? focusPoint, UCameraException? error})
const

Properties

aspectRatio → double
no setter
capabilities → UCameraCapabilities
final
device → UCameraDevice?
final
deviceOrientation → UCameraOrientation
final
displayRotation → int
Clockwise rotation, in degrees, of the app window relative to the device's natural orientation. Zero while the app stays portrait-locked.
final
error → UCameraException?
final
exposureDuration → Duration?
final
exposureMode → UExposureMode
final
exposureOffset → double
final
flash → UFlashMode
final
focusMode → UFocusMode
final
focusPoint → Offset?
Last tap-to-focus point in normalized preview coordinates.
final
hasError → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
hdr → UHdrMode
final
isInitialized → bool
no setter
iso → double?
final
isPreviewPaused → bool
no setter
isRecording → bool
no setter
isRecordingPaused → bool
no setter
isScanning → bool
final
isStreamingFrames → bool
final
lockedOrientation → UCameraOrientation?
final
mirrored → bool
final
nightMode → UNightMode
final
previewRotation → int
Clockwise rotation, in degrees, that the raw preview texture needs before it lines up with the app window. The sensor buffer arrives in the sensor's own orientation, which is a quarter turn off on most phones.
no setter
previewSize → UCameraSize
final
recordingBytes → int
final
recordingDuration → Duration
final
rotatedPreviewSize → UCameraSize
previewSize after previewRotation is applied, so it matches what the widget actually paints.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sensorOrientation → int
final
stabilization → UStabilizationMode
final
state → UCameraState
final
textureId → int?
final
torchOn → bool
final
viewType → String?
Platform view identifier used instead of a texture on the web.
final
whiteBalance → UWhiteBalanceMode
final
zoom → double
final

Methods

copyWith({UCameraState? state, UCameraDevice? device, UCameraCapabilities? capabilities, UCameraSize? previewSize, int? textureId, String? viewType, int? sensorOrientation, int? displayRotation, UCameraOrientation? deviceOrientation, UCameraOrientation? lockedOrientation, UFlashMode? flash, bool? torchOn, double? zoom, double? exposureOffset, UExposureMode? exposureMode, UFocusMode? focusMode, UWhiteBalanceMode? whiteBalance, double? iso, Duration? exposureDuration, UStabilizationMode? stabilization, UHdrMode? hdr, UNightMode? nightMode, Duration? recordingDuration, int? recordingBytes, bool? isStreamingFrames, bool? isScanning, bool? mirrored, Offset? focusPoint, UCameraException? error, bool clearError = false, bool clearFocusPoint = false, bool clearTexture = false}) → UCameraValue
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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