loadComplete method

void loadComplete()

after data returned,set the footer state to idle

Implementation

void loadComplete() {
  // change state after ui update,else it will have a bug:twice loading
  WidgetsBinding.instance!.addPostFrameCallback((_) {
    footerMode?.value = LoadStatus.idle;
  });
}