generateListView method
ListView
generateListView({
- required Widget itemBuilder(),
- Axis scrollDirection = Axis.vertical,
- ScrollController? controller,
- bool shrinkWrap = false,
- bool reverse = false,
- ScrollPhysics physics = const BouncingScrollPhysics(),
- EdgeInsetsGeometry? padding,
Generates a ListView.builder widget based on the List
Implementation
ListView generateListView({
required Widget Function(BuildContext, int) itemBuilder,
Axis scrollDirection = Axis.vertical,
ScrollController? controller,
bool shrinkWrap = false,
bool reverse = false,
ScrollPhysics physics = const BouncingScrollPhysics(),
EdgeInsetsGeometry? padding,
}) {
return ListView.builder(
controller: controller,
scrollDirection: scrollDirection,
physics: physics,
shrinkWrap: shrinkWrap,
reverse: reverse,
padding: padding,
itemCount: length,
itemBuilder: itemBuilder,
);
}