YRefreshGridView<T> constructor

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

Implementation

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