getLoggedInUserCustomLists function Null safety
Gets the limit
number of custom lists from offset
in the list of Custom Lists of the user identified
by the sessionToken
and returns a CustomListResponse
class instance containing all the lists and their data.
Implementation
Future<CustomListResponse> getLoggedInUserCustomLists(
String sessionToken, int? limit, int? offset) async {
var response =
await getLoggedInUserCustomListsResponse(sessionToken, limit, offset);
try {
return CustomListResponse.fromJson(jsonDecode(response.body));
} on Exception {
throw MangadexServerException(jsonDecode(response.body));
}
}