nextDeckPage method

void nextDeckPage(
  1. Map pagination,
  2. ApiResponse apiResponse
)

Implementation

void nextDeckPage(Map pagination, ApiResponse apiResponse) {
  if (pagination["next_page_url"] != null) {
    ApiHelper().requestWithServerGet(
      type: pagination["next_page_url"],
      apiResponse: apiResponse,
    );
  } else {
    if (apiResponse.onRequestError != null) {
      apiResponse.onRequestError!("No Next Page");
    }
  }
}