buildListView method

Widget buildListView(
  1. BuildContext context,
  2. List<T> items
)

Builds a list view with the specified items.

Implementation

Widget buildListView(BuildContext context, List<T> items) {
  if (items.isEmpty) {
    return _buildEmptyContent(context);
  }

  // If the view is scrollable or the items are grouped by category,
  // create a scrollable list view
  if (isViewScrollable || groupByCategory) {
    return _buildScrollableContent(context, items);
  }

  // Otherwise, create a fixed list view
  return _buildFixedContent(context, items);
}