loadNextRequest method

  1. @protected
Future<void> loadNextRequest()

The actual loading process is done from the API when it is loaded next.

By overriding, it is possible to use plugins, etc. in addition to simply retrieving from the URL.

Implementation

@protected
Future<void> loadNextRequest() async {
  final res = await Api.get(getEndpoint, headers: getHeaders);
  onCatchResponse(res);
  final data = fromCollection(filterOnLoad(fromResponse(res.body)));
  addAll(data);
}