Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions shared/lib/src/bloc_complex/catalog/catalog_slice.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ class CatalogSlice {
hasNext = true;

/// The index of the last product of this slice.
int get endIndex =>
startIndex + _pages.map((page) => page.endIndex).fold(-1, max);
int get endIndex => _pages.map((page) => page.endIndex).fold(-1, max);

/// Returns the product at [index], or `null` if data isn't loaded yet.
Product elementAt(int index) {
Expand Down