buildChildLayout method

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

Subclasses should override this method to build the layout model.

Implementation

@override
Widget buildChildLayout(BuildContext context) {
  final separatorBuilder = _separatorBuilder;
  return separatorBuilder != null
      ? PagedSliverList<PageKeyType, ItemType>.separated(
          builderDelegate: builderDelegate,
          pagingController: pagingController,
          separatorBuilder: separatorBuilder,
          addAutomaticKeepAlives: addAutomaticKeepAlives,
          addRepaintBoundaries: addRepaintBoundaries,
          addSemanticIndexes: addSemanticIndexes,
          itemExtent: itemExtent,
          shrinkWrapFirstPageIndicators: _shrinkWrapFirstPageIndicators,
        )
      : PagedSliverList<PageKeyType, ItemType>(
          builderDelegate: builderDelegate,
          pagingController: pagingController,
          addAutomaticKeepAlives: addAutomaticKeepAlives,
          addRepaintBoundaries: addRepaintBoundaries,
          addSemanticIndexes: addSemanticIndexes,
          itemExtent: itemExtent,
          shrinkWrapFirstPageIndicators: _shrinkWrapFirstPageIndicators,
          prototypeItem: prototypeItem,
        );
}