Preview constructor
Preview({
- required PreviewDetails previewDetails,
- required double targetHeight,
- required double targetWidth,
- required BoxFit fit,
Implementation
Preview({
required PreviewDetails previewDetails,
required this.targetHeight,
required this.targetWidth,
required this.fit,
}) : textureId = previewDetails.textureId,
height = previewDetails.height.toDouble(),
width = previewDetails.width.toDouble(),
orientation = previewDetails.orientation;