getThumbnail method
Implementation
Future<Uint8List> getThumbnail({bool highQuality = true}) async {
if (_medium == null) {
thumbnail = isVideo
? (await VideoThumbnail.thumbnailData(
video: _file!.path,
imageFormat: ImageFormat.JPEG,
quality: highQuality ? 100 : 20,
))!
: await getData();
} else {
thumbnail = Uint8List.fromList(
await _medium!.getThumbnail(highQuality: highQuality));
}
return thumbnail!;
}