Pagination constructor

Pagination({
  1. List<Pointer?>? items = const [],
  2. int? offset,
  3. int? total,
  4. int? size,
  5. PaginationPage? first,
  6. PaginationPage? current,
  7. PaginationPage? previous,
  8. PaginationPage? next,
  9. PaginationPage? last,
  10. List<PaginationPage?>? pages = const [],
  11. bool? enabled,
  12. Map<String, Link?> links = const {},
  13. ComponentMeta? meta,
  14. required ElementTypeEnum? type,
})

Returns a new Pagination instance.

Implementation

Pagination({
  this.items = const [],
  this.offset,
  this.total,
  this.size,
  this.first,
  this.current,
  this.previous,
  this.next,
  this.last,
  this.pages = const [],
  this.enabled,
  Map<String, Link?> links = const {},
  ComponentMeta? meta,
  required ElementTypeEnum? type,
}) : super(type: type, links: links, meta: meta);