next method

Implementation

Future<PaginatedPredictions> next() async {
  if (!hasNextPage) {
    throw NoNextPageException();
  }
  assert(nextApiUrl != null, "No next page exists for this list");
  return await ReplicatePrediction().listPredictionsFromApiLink(
    url: nextApiUrl!,
  );
}