Preview constructor

Preview({
  1. required PreviewDetails previewDetails,
  2. required double targetWidth,
  3. required double targetHeight,
  4. required BoxFit fit,
})

Implementation

Preview({
  required PreviewDetails previewDetails,
  required this.targetWidth,
  required this.targetHeight,
  required this.fit,
})  : textureId = previewDetails.textureId,
      width = previewDetails.width!.toDouble(),
      height = previewDetails.height!.toDouble(),
      sensorOrientation = previewDetails.sensorOrientation as int?;