Pagination constructor

Pagination({
  1. Key? key,
  2. int current = 1,
  3. int totalItems = 0,
  4. int itemsPerPage = 10,
  5. String mode = "multi",
  6. String prevText = "上一页",
  7. String nextText = "下一页",
  8. int showPageSize = 5,
  9. dynamic onChange(
    1. int? page
    )?,
})

Implementation

Pagination({
  Key? key,
  this.current: 1,
  this.totalItems: 0,
  this.itemsPerPage: 10,
  this.mode: "multi",
  this.prevText: "上一页",
  this.nextText: "下一页",
  this.showPageSize: 5,
  this.onChange,
}) : super(key: key);