buildWidget method

  1. @override
Widget buildWidget(
  1. BuildContext context
)
override

Implementation

@override
Widget buildWidget(BuildContext context) {
  ListView w = XListView(
    items: itemList,
    itemView: onItemView,
    lastItemView: onLastItemView,
    shrinkWrap: false,
    padding: listPadding,
    separator: separated,
    separatorIndentStart: separatorIndentStart,
    separatorIndentEnd: separatorIndentEnd,
    controller: scrollController,
  );

  if (topLoading || bottomLoading) {
    return w.scrollLoading(onTopStart: topLoading ? refreshItems : null, onBottomStart: bottomLoading ? onLoadMore : null);
  } else {
    return w;
  }
}