buildChildLayout method
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,
);
}