Pagination constructor
const
Pagination({
- Key? key,
- PaginationController? controller,
- int? current,
- int defaultCurrent = 1,
- int defaultPageSize = 10,
- bool? disabled,
- bool hideOnSinglePage = false,
- Widget itemBuilder(
- int page
- int pageSize = 10,
- List<
int> pageSizeOptions = const [10, 20, 50, 100], - bool? responsive,
- bool showLessItems = false,
- bool? showQuickJumper,
- bool? showSizeChanger,
- bool showTitle = true,
- bool? simple,
- Size size = Size.medium,
- int total = 0,
- void onChange()?,
- void onShowSizeChange()?,
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);