Skip to content

Commit f3902ea

Browse files
more fixes
1 parent 0d2a199 commit f3902ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/src/common/util/pagination.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class PaginationHelper<T> {
2121

2222
var count = 0;
2323

24-
var handleResponse;
25-
handleResponse = (http.Response response) {
24+
25+
handleResponse(http.Response response) {
2626
count++;
2727
responses.add(response);
2828

@@ -48,7 +48,9 @@ class PaginationHelper<T> {
4848
actualFetch(nextUrl).then(handleResponse);
4949
};
5050

51-
actualFetch(path).then(handleResponse);
51+
actualFetch(path).then(handleResponse).catchError((e, s) {
52+
completer.completeError(e, s);
53+
});
5254

5355
return completer.future;
5456
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy