RefreshController constructor

RefreshController({
  1. bool initialRefresh = false,
  2. RefreshStatus? initialRefreshStatus,
  3. LoadStatus? initialLoadStatus,
})

Implementation

RefreshController(
    {this.initialRefresh = false,
    RefreshStatus? initialRefreshStatus,
    LoadStatus? initialLoadStatus}) {
  headerMode =
      RefreshNotifier(initialRefreshStatus ?? RefreshStatus.idle);
  footerMode = RefreshNotifier(initialLoadStatus ?? LoadStatus.idle);
}