onRecordsLoadCancel method
- @protected
- required Query query,
- required LoadingKey loadingKey,
inherited
Called in case of a loading cancellation.
This situation can occur when one data load is interrupted by another or by closing the controller.
In this function, you may need to implement resetting of the loading
status in the list state object (like ...isLoading = false).
The function can also be used when data should be put into the list
in a separate Isolate in order to close it.
Implementation
@protected
void onRecordsLoadCancel(
{required Query query, required LoadingKey loadingKey}) {
// you can use it to close a thread
}