UCameraValue constructor
const
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,
Implementation
const UCameraValue({
this.state = UCameraState.uninitialized,
this.device,
this.capabilities = UCameraCapabilities.none,
this.previewSize = const UCameraSize(0, 0),
this.textureId,
this.viewType,
this.sensorOrientation = 0,
this.displayRotation = 0,
this.deviceOrientation = UCameraOrientation.portraitUp,
this.lockedOrientation,
this.flash = UFlashMode.off,
this.torchOn = false,
this.zoom = 1,
this.exposureOffset = 0,
this.exposureMode = UExposureMode.auto,
this.focusMode = UFocusMode.continuousPicture,
this.whiteBalance = UWhiteBalanceMode.auto,
this.iso,
this.exposureDuration,
this.stabilization = UStabilizationMode.auto,
this.hdr = UHdrMode.off,
this.nightMode = UNightMode.off,
this.recordingDuration = Duration.zero,
this.recordingBytes = 0,
this.isStreamingFrames = false,
this.isScanning = false,
this.mirrored = false,
this.focusPoint,
this.error,
});