getCoverImage method
Future<Uint8List>
getCoverImage(
- LocalImageProvider localImageProvider,
- int pixelHeight,
- int pixelWidth, {
- int? compression,
Returns a jpeg of the cover image for the album that can be loaded into a MemoryImage.
The resulting image will maintain its aspect ratio and fit
within a pixelHeight
xpixelWidth
area.
Implementation
Future<Uint8List> getCoverImage(
LocalImageProvider localImageProvider, int pixelHeight, int pixelWidth,
{int? compression}) async {
return localImageProvider.imageBytes(coverImg!.id!, pixelHeight, pixelWidth,
compression: compression);
}