Preview constructor

Preview({
  1. required PreviewDetails previewDetails,
  2. required double targetHeight,
  3. required double targetWidth,
  4. 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;