Preview constructor
Preview({
- required PreviewDetails previewDetails,
- required double targetWidth,
- required double targetHeight,
- 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?;