Pagination.page constructor

const Pagination.page({
  1. @Default(1) int currentPage,
  2. @Default(20) int perPage,
  3. @Default(0) int total,
})

page based pagination

Implementation

const factory Pagination.page({
  @Default(1) int currentPage,
  @Default(20) int perPage,
  @Default(0) int total,
}) = PagePagination;