We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a5348 commit 19e428dCopy full SHA for 19e428d
lib/api/paginated_result.dart
@@ -8,7 +8,7 @@ import 'package:stelaris/api/model/data_model.dart';
8
///
9
/// Type parameter [T] represents the specific [DataModel] implementation
10
/// contained in this paginated result.
11
-class PaginatedResult<T extends DataModel> {
+class PaginatedResult<T> {
12
/// The list of items for the current page.
13
final List<T> items;
14
@@ -40,6 +40,8 @@ class PaginatedResult<T extends DataModel> {
40
required this.pageSize,
41
});
42
43
+ bool get hasItems => items.isNotEmpty;
44
+
45
/// Whether there are more pages available after the current page.
46
bool get hasNextPage => currentPage < totalPages;
47
0 commit comments