onFetch abstract method

  1. @protected
Future<RemoteList<T>> onFetch()

Called when trying to fetch data for initial or on refreshing. Must return a list of data as the result, or throw an error when it's failed to fetch.

Implementation

@protected
Future<RemoteList<T>> onFetch();