RefreshController constructor

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

initialRefresh:When SmartRefresher is init,it will call requestRefresh at once

initialRefreshStatus: headerMode default value

initialLoadStatus: footerMode default value

Implementation

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