PaginatedModels constructor

PaginatedModels({
  1. String? previousApiUrl,
  2. String? nextApiUrl,
  3. required List<PaginationModel> results,
})

This class lets you get a paginated list of models, with the ability to fetch the next and previous pages if they exist.

Implementation

PaginatedModels({
  this.previousApiUrl,
  this.nextApiUrl,
  required this.results,
});