TPagination constructor

const TPagination({
  1. Key? key,
  2. required int currentPage,
  3. required int totalPages,
  4. int totalVisible = 9,
  5. required ValueChanged<int> onPageChanged,
})

Implementation

const TPagination({
  super.key,
  required this.currentPage,
  required this.totalPages,
  this.totalVisible = 9,
  required this.onPageChanged,
}) : assert(totalVisible % 2 == 1, 'totalVisible must be an odd number');