Pagination constructor

Pagination({
  1. int? page,
  2. int? perPage,
  3. int? total,
  4. int? totalPages,
})

Returns a new Pagination instance.

Implementation

Pagination({
  this.page,
  this.perPage,
  this.total,
  this.totalPages,
});