CameraMacOSRawView constructor

const CameraMacOSRawView({
  1. Key? key,
  2. bool usePlatformView = false,
  3. Size? cameraSize,
  4. int? textureId,
  5. FilterQuality filterQuality = FilterQuality.low,
  6. dynamic onPlatformViewCreated(
    1. int id
    )?,
})

Implementation

const CameraMacOSRawView({
  super.key,
  this.usePlatformView = false,
  this.cameraSize,
  this.textureId,
  this.filterQuality = FilterQuality.low,
  this.onPlatformViewCreated,
})  : assert(
        !usePlatformView || cameraSize != null,
        'cameraSize must not be null when usePlatformView is true',
      ),
      assert(
        usePlatformView || textureId != null,
        'textureId must not be null when usePlatformView is false',
      );