ThumbnailResult constructor

const ThumbnailResult({
  1. required List<int> data,
  2. required int width,
  3. required int height,
  4. required ThumbnailFormat format,
  5. required double timePosition,
  6. required int size,
})

Creates a new ThumbnailResult instance.

All parameters are required:

  • data: The raw image data as bytes
  • width: The actual width of the generated thumbnail
  • height: The actual height of the generated thumbnail
  • format: The output format of the thumbnail
  • timePosition: The time position used for generation
  • size: The file size in bytes

Implementation

const ThumbnailResult({
  required this.data,
  required this.width,
  required this.height,
  required this.format,
  required this.timePosition,
  required this.size,
});