CameraMacOSView constructor

const CameraMacOSView({
  1. Key? key,
  2. String? deviceId,
  3. String? audioDeviceId,
  4. bool enableAudio = true,
  5. BoxFit fit = BoxFit.contain,
  6. required CameraMacOSMode cameraMode,
  7. required dynamic onCameraInizialized(
    1. CameraMacOSController
    ),
  8. Widget onCameraLoading(
    1. Object?
    )?,
  9. Widget onCameraDestroyed()?,
  10. bool usePlatformView = false,
  11. PictureResolution resolution = PictureResolution.max,
  12. AudioQuality audioQuality = AudioQuality.max,
  13. PictureFormat pictureFormat = PictureFormat.tiff,
  14. VideoFormat videoFormat = VideoFormat.mp4,
  15. AudioFormat audioFormat = AudioFormat.kAudioFormatAppleLossless,
  16. Torch toggleTorch = Torch.off,
  17. CameraOrientation orientation = CameraOrientation.orientation0deg,
  18. bool isVideoMirrored = true,
})

Implementation

const CameraMacOSView({
  Key? key,
  this.deviceId,
  this.audioDeviceId,
  this.enableAudio = true,
  this.fit = BoxFit.contain,
  required this.cameraMode,
  required this.onCameraInizialized,
  this.onCameraLoading,
  this.onCameraDestroyed,
  this.usePlatformView = false,
  this.resolution = PictureResolution.max,
  this.audioQuality = AudioQuality.max,
  this.pictureFormat = PictureFormat.tiff,
  this.videoFormat = VideoFormat.mp4,
  this.audioFormat = AudioFormat.kAudioFormatAppleLossless,
  this.toggleTorch = Torch.off,
  this.orientation = CameraOrientation.orientation0deg,
  this.isVideoMirrored = true,
}) : super(key: key);