SliverVariedExtentList.list constructor
A sliver that places multiple box children in a linear array along the main axis.
SliverVariedExtentList places its children in a linear array along the main
axis starting at offset zero and without gaps. Each child is forced to have
the returned extent of itemExtentBuilder
in the main axis and the
SliverConstraints.crossAxisExtent in the cross axis.
This constructor uses a list of Widgets to build the sliver.
Implementation
SliverVariedExtentList.list({
super.key,
required List<Widget> children,
required this.itemExtentBuilder,
bool addAutomaticKeepAlives = true,
bool addRepaintBoundaries = true,
bool addSemanticIndexes = true,
}) : super(delegate: SliverChildListDelegate(
children,
addAutomaticKeepAlives: addAutomaticKeepAlives,
addRepaintBoundaries: addRepaintBoundaries,
addSemanticIndexes: addSemanticIndexes,
));