EasyListView constructor
const
EasyListView({
- Key? key,
- required int itemCount,
- required IndexedWidgetBuilder itemBuilder,
- WidgetBuilder? headerBuilder,
- bool loadMore = false,
- VoidCallback? onLoadMore,
- bool loadMoreWhenNoData = false,
- WidgetBuilder? loadMoreItemBuilder,
- IndexedWidgetBuilder? dividerBuilder,
- ScrollPhysics? physics,
- NestedScrollViewHeaderSliversBuilder? headerSliverBuilder,
- ScrollController? controller,
- Widget? foregroundWidget,
- EdgeInsetsGeometry? padding,
- bool scrollbarEnable = true,
- bool isSliverMode = false,
- Function? onRefresh,
Implementation
const EasyListView({Key? key,
required this.itemCount,
required this.itemBuilder,
this.headerBuilder,
this.footerBuilder,
this.loadMore = false,
this.onLoadMore,
this.loadMoreWhenNoData = false,
this.loadMoreItemBuilder,
this.dividerBuilder,
this.physics,
this.headerSliverBuilder,
this.controller,
this.foregroundWidget,
this.padding,
this.scrollbarEnable = true,
this.isSliverMode = false,
this.onRefresh
// [Not Recommended]
// Sliver mode will discard a lot of ListView variables (likes physics, controller),
// and each of items must be sliver.
// *Sliver mode will build all items when inited. (ListView item is built by lazy)*
}) : super(key: key);