buildChildLayout method
Subclasses should override this method to build the layout model.
Implementation
@override
Widget buildChildLayout(BuildContext context) {
return switch (_separatorBuilder) {
null => SliverInfiniteListView(
delegate: delegate,
addAutomaticKeepAlives: addAutomaticKeepAlives,
addRepaintBoundaries: addRepaintBoundaries,
addSemanticIndexes: addSemanticIndexes,
itemExtent: itemExtent,
prototypeItem: prototypeItem,
enableShrinkWrapForFirstPageIndicators:
_enableShrinkWrapForFirstPageIndicators,
),
_ => SliverInfiniteListView.separated(
delegate: delegate,
separatorBuilder: _separatorBuilder,
addAutomaticKeepAlives: addAutomaticKeepAlives,
addRepaintBoundaries: addRepaintBoundaries,
addSemanticIndexes: addSemanticIndexes,
itemExtent: itemExtent,
enableShrinkWrapForFirstPageIndicators:
_enableShrinkWrapForFirstPageIndicators,
),
};
}