SliverPrototypeExtentList constructor Null safety

const SliverPrototypeExtentList(
  1. {Key? key,
  2. required SliverChildDelegate delegate,
  3. required Widget prototypeItem}
)

Creates a sliver that places its box children in a linear array and constrains them to have the same extent as a prototype item along the main axis.

Implementation

const SliverPrototypeExtentList({
  super.key,
  required super.delegate,
  required this.prototypeItem,
}) : assert(prototypeItem != null);