buildChildLayout method

  1. @override
Widget buildChildLayout (BuildContext context)
override

Subclasses should override this method to build the layout model.

Implementation

@override
Widget buildChildLayout(BuildContext context) {
  if (itemExtent != null) {
    return SliverFixedExtentList(
      delegate: childrenDelegate,
      itemExtent: itemExtent,
    );
  }
  return SliverList(delegate: childrenDelegate);
}