getCoverArtResponse function Null safety
returns a https response with cover art details for a manga with given mangaId
or uuid
Implementation
Future<http.Response> getCoverArtResponse(
String mangaId, [
String? coverId,
int limit = 10,
int offset = 0,
]) async {
final mangas = '&manga[]=$mangaId';
final covers = coverId != null ? '&cover[]=$coverId' : '';
final uri =
'https://$authority/cover?limit=$limit&offset=$offset$mangas$covers';
var response = await http.get(Uri.parse(uri),
headers: {HttpHeaders.contentTypeHeader: 'application/json'});
return response;
}