SliverPrototypeExtentList constructor

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.


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