YRefreshListView<T> constructor

YRefreshListView<T>({
  1. required List<T> models,
  2. dynamic onRefresh()?,
  3. required dynamic itemBuilder(
    1. BuildContext context,
    2. int index,
    3. T model
    ),
  4. ScrollController? scrollController,
  5. Header? header,
  6. Footer? footer,
  7. dynamic onLoadMore()?,
  8. bool bottomBouncing = true,
  9. bool scrollbar = true,
  10. EdgeInsets padding = EdgeInsets.zero,
  11. bool reverse = false,
})

Implementation

YRefreshListView({
  required this.models,
  this.onRefresh,
  required this.itemBuilder,
  this.scrollController,
  this.header,
  this.footer,
  this.onLoadMore,
  this.bottomBouncing = true,
  this.scrollbar = true,
  this.padding = EdgeInsets.zero,
  this.reverse = false,
});