RefreshWidget constructor

const RefreshWidget({
  1. Key? key,
  2. RefreshListStyle listStyle = RefreshListStyle.list,
  3. Widget child = const SizedBox(),
  4. List<Widget>? slivers,
  5. OnRefreshCall? onRefresh,
  6. OnLoadCall? onLoad,
  7. bool enableRefresh = true,
  8. bool enableLoad = true,
  9. Widget? emptyWidget,
  10. bool isVisibilityFirstLoadWidget = true,
  11. bool enableControlFinishRefresh = true,
  12. Footer? footer,
  13. RefreshInitCall? initCall,
  14. double scrollMaxRatioLoad = 0.7,
  15. Widget? loadIndicatorWidget,
  16. ScrollController? scrollController,
})

Implementation

const RefreshWidget({
  Key? key,
  this.listStyle = RefreshListStyle.list,
  this.child = const SizedBox(),
  this.slivers,
  this.onRefresh,
  this.onLoad,
  this.enableRefresh = true,
  this.enableLoad = true,
  this.emptyWidget,
  this.isVisibilityFirstLoadWidget = true,
  this.enableControlFinishRefresh = true,
  this.footer,
  this.initCall,
  this.scrollMaxRatioLoad = 0.7,
  this.loadIndicatorWidget,
  this.scrollController,
}) : super(key: key);