YRefreshGridView<T> constructor
YRefreshGridView<T> ({
- required List<
T> models, - required SliverGridDelegate gridDelegate,
- dynamic onRefresh()?,
- required dynamic itemBuilder(
- BuildContext context,
- int index,
- T model
- ScrollController? scrollController,
- Header? header,
- dynamic onLoadMore()?,
- bool bottomBouncing = true,
- bool scrollbar = true,
- 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,
});