update example

This commit is contained in:
Salvatore Giordano
2022-01-18 16:39:07 +01:00
parent 51e7c873cb
commit 96fae22655
4 changed files with 17 additions and 7 deletions
@@ -123,7 +123,7 @@ abstract class PagedValue<Key, Value> with _$PagedValue<Key, Value> {
/// Returns `true` if the [PagedValue] is [Success] and has an error.
bool get hasError => asSuccess.error != null;
///
///
int get itemCount {
final count = asSuccess.items.length;
if (hasNextPage || hasError) return count + 1;