getAlbumThumbnail static method

Future<List<int>?> getAlbumThumbnail({
  1. required String albumId,
  2. MediumType? mediumType,
  3. int? width,
  4. int? height,
  5. bool? highQuality = false,
})

Get album thumbnail by album id

Implementation

static Future<List<int>?> getAlbumThumbnail({
  required String albumId,
  MediumType? mediumType,
  int? width,
  int? height,
  bool? highQuality = false,
}) async {
  final bytes = await _channel.invokeMethod('getAlbumThumbnail', {
    'albumId': albumId,
    'mediumType': mediumTypeToJson(mediumType),
    'width': width,
    'height': height,
    'highQuality': highQuality,
  });
  return bytes != null ? new List<int>.from(bytes) : null;
}