getUserCustomLists method

Future<SingleCustomListResponse> getUserCustomLists(
  1. String userId,
  2. int? limit,
  3. int? offset
)
inherited

Endpoint used: get /user/{id}/list

Get's limit number of PUBLIC custom lists of a user identified by it's userId counting from list offset and returns a SingleCustomListResponse class instance containing the details of the lists.

Implementation

Future<SingleCustomListResponse> getUserCustomLists(
    String userId, int? limit, int? offset) async {
  var response = await getUserCustomListsResponse(userId, limit, offset);
  try {
    return SingleCustomListResponse.fromJson(jsonDecode(response.body));
  } on Exception {
    throw MangadexServerException(jsonDecode(response.body));
  }
}