StrapiQueryPagination constructor

StrapiQueryPagination({
  1. int? pageSize,
  2. int? page,
  3. int? start,
  4. int? limit,
  5. bool? withCount = true,
})

Implementation

StrapiQueryPagination({
  this.pageSize,
  this.page,
  this.start,
  this.limit,
  this.withCount = true,
}) : assert(
        (pageSize != null &&
                page != null &&
                start == null &&
                limit == null) ||
            (start != null &&
                limit != null &&
                pageSize == null &&
                page == null),
        'Either pageSize and page or start and limit must be set',
      );