VideoThumbnail.bytes constructor

const VideoThumbnail.bytes(
  1. Uint8List? bytes, {
  2. Key? key,
  3. double? height,
  4. double? width,
  5. Future<void> onError()?,
  6. BoxFit fit = BoxFit.contain,
  7. bool autoplay = false,
  8. bool interface = true,
})

Constructs a VideoThumbnail from the provided bytes.

Implementation

const VideoThumbnail.bytes(
  this.bytes, {
  super.key,
  this.height,
  this.width,
  this.onError,
  this.fit = BoxFit.contain,
  this.autoplay = false,
  this.interface = true,
}) : url = null,
     checksum = null,
     path = null;