ItemExtentBuilder typedef

ItemExtentBuilder = double? Function(int index, SliverLayoutDimensions dimensions)

Called to get the item extent by the index of item.

Should return null if asked to build an item extent with a greater index than exists.

Used by ListView.itemExtentBuilder and SliverVariedExtentList.itemExtentBuilder.

Implementation

typedef ItemExtentBuilder = double? Function(int index, SliverLayoutDimensions dimensions);