UCameraValue constructor

const UCameraValue({
  1. UCameraState state = UCameraState.uninitialized,
  2. UCameraDevice? device,
  3. UCameraCapabilities capabilities = UCameraCapabilities.none,
  4. UCameraSize previewSize = const UCameraSize(0, 0),
  5. int? textureId,
  6. String? viewType,
  7. int sensorOrientation = 0,
  8. int displayRotation = 0,
  9. UCameraOrientation deviceOrientation = UCameraOrientation.portraitUp,
  10. UCameraOrientation? lockedOrientation,
  11. UFlashMode flash = UFlashMode.off,
  12. bool torchOn = false,
  13. double zoom = 1,
  14. double exposureOffset = 0,
  15. UExposureMode exposureMode = UExposureMode.auto,
  16. UFocusMode focusMode = UFocusMode.continuousPicture,
  17. UWhiteBalanceMode whiteBalance = UWhiteBalanceMode.auto,
  18. double? iso,
  19. Duration? exposureDuration,
  20. UStabilizationMode stabilization = UStabilizationMode.auto,
  21. UHdrMode hdr = UHdrMode.off,
  22. UNightMode nightMode = UNightMode.off,
  23. Duration recordingDuration = Duration.zero,
  24. int recordingBytes = 0,
  25. bool isStreamingFrames = false,
  26. bool isScanning = false,
  27. bool mirrored = false,
  28. Offset? focusPoint,
  29. 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,
});