pagination_model.dart 278 B

123456789101112
  1. class PaginatedData<T> {
  2. final List<T> list;
  3. final int page;
  4. final int size;
  5. final int total;
  6. const PaginatedData(
  7. {required this.list,
  8. required this.page,
  9. required this.size,
  10. required this.total});
  11. bool get hasMore => page * size < total;
  12. }