Paginate<T> extension

Extension on the List<T> class that adds a paginate method for easy pagination of list elements.

on

Methods

paginate({required int itemsPerPage, required int page}) Iterable<T>
Paginates the elements of the list based on the given parameters.