loadFailed method
void
loadFailed()
If catchError happen,you may call loadFailed indicate fetch data from network failed
Implementation
void loadFailed() {
// change state after ui update,else it will have a bug:twice loading
WidgetsBinding.instance.addPostFrameCallback((_) {
footerMode?.value = LoadStatus.failed;
});
}