getAlbumThumbnail static method

Future<Uint8List> getAlbumThumbnail({
  1. required String albumUri,
  2. int? width,
  3. int? height,
  4. int? size,
  5. int quality = 100,
})

Implementation

static Future<Uint8List> getAlbumThumbnail({
  required String albumUri,
  int? width,
  int? height,
  int? size,
  int quality = 100,
}) async {
  final raw = await _channel.invokeMethod(
    'getAlbumThumbnail',
    {
      'albumUri': albumUri,
      'width': width,
      'height': height,
      'size': size,
      'quality': quality,
    },
  );

  return Uint8List.fromList(raw ?? <int>[]);
}