performLoadQuery abstract method

  1. @protected
Future<LoadResult> performLoadQuery({
  1. required Query query,
  2. required LoadingKey loadingKey,
})
inherited

The function is responsible for retrieving data from a source.

If an error occurs during the loading of data, the function must handle this error (e.g. set error status ...hasError = true in the list state object and throw HandledLoadingException).

If it is necessary to interrupt loading for some reason, this can be done by throwing InterruptLoading (example).

Implementation

@protected
Future<LoadResult> performLoadQuery(
    {required Query query, required LoadingKey loadingKey});