Pagination constructor

const Pagination({
  1. Key? key,
  2. PaginationController? controller,
  3. int? current,
  4. int defaultCurrent = 1,
  5. int defaultPageSize = 10,
  6. bool? disabled,
  7. bool hideOnSinglePage = false,
  8. Widget itemBuilder(
    1. int page
    )?,
  9. int pageSize = 10,
  10. List<int> pageSizeOptions = const [10, 20, 50, 100],
  11. bool? responsive,
  12. bool showLessItems = false,
  13. bool? showQuickJumper,
  14. bool? showSizeChanger,
  15. bool showTitle = true,
  16. bool? simple,
  17. Size size = Size.medium,
  18. int total = 0,
  19. void onChange(
    1. int page,
    2. int pageSize
    )?,
  20. void onShowSizeChange(
    1. int current,
    2. int size
    )?,
})

Implementation

const Pagination({
  Key? key,
  this.controller,
  this.current,
  this.defaultCurrent = 1,
  this.defaultPageSize = 10,
  this.disabled,
  this.hideOnSinglePage = false,
  this.itemBuilder,
  this.pageSize = 10,
  this.pageSizeOptions = const [10, 20, 50, 100],
  this.responsive,
  this.showLessItems = false,
  this.showQuickJumper,
  this.showSizeChanger,
  this.showTitle = true,
  this.simple,
  this.size = Size.medium,
  this.total = 0,
  this.onChange,
  this.onShowSizeChange,
}) : super(key: key);