computeItemsPerPageOptions method
Implementation
List<int> computeItemsPerPageOptions(List<int> options) {
if (totalDisplayItems == 0) return [];
if (totalItems == 0) return <int>{computedItemsPerPage, ...options}.toList()..sort();
return <int>{computedItemsPerPage, ...options}.where((x) => x <= totalItems && x > 0).toList()..sort();
}