Pagination constructor
const
Pagination({})
Take in parameter the current page , the total of pages, and the function on change of page
Implementation
const Pagination({
super.key,
required this.currentPage,
required this.totalPages,
required this.onPageChanged,
});