RefreshController constructor
RefreshController({
- bool initialRefresh = false,
- RefreshStatus? initialRefreshStatus,
- 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 = RefreshNotifier(initialRefreshStatus ?? RefreshStatus.idle);
this.footerMode = RefreshNotifier(initialLoadStatus ?? LoadStatus.idle);
}