pagination library Null safety

Functions

clampRowsPerPage(int expectedRows, int totalRows) int