CameraMacOSView constructor
const
CameraMacOSView({
- Key? key,
- String? deviceId,
- String? audioDeviceId,
- bool enableAudio = true,
- BoxFit fit = BoxFit.contain,
- required CameraMacOSMode cameraMode,
- required dynamic onCameraInizialized(),
- Widget onCameraLoading()?,
- Widget onCameraDestroyed()?,
- bool usePlatformView = false,
- PictureResolution resolution = PictureResolution.max,
- AudioQuality audioQuality = AudioQuality.max,
- PictureFormat pictureFormat = PictureFormat.tiff,
- VideoFormat videoFormat = VideoFormat.mp4,
- AudioFormat audioFormat = AudioFormat.kAudioFormatAppleLossless,
- Torch toggleTorch = Torch.off,
- CameraOrientation orientation = CameraOrientation.orientation0deg,
- 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);