indexed_list_view
library
Classes
-
IndexedListView
-
A ListView that lets you jump instantly or animate to any list item, by index.
Important: Only works for lists with infinite extent.
-
IndexedScrollController
-
Provides scroll with infinite bounds, and keeps a scroll-position and a origin-index.
The scroll-position is the number of pixels of scroll, considering the item at origin-index
as the origin (0.0). So, for example, if you have scroll-position 10.0 and origin-index 15,
then you are 10 pixels after the 15th item.
Typedefs
-
IndexedWidgetBuilderOrNull
= Widget? Function(BuildContext context, int index)
-
The builder should create a widget for the given index.
When the builder returns
null
, the list will ask the emptyItemBuilder
to create an "empty" item to be displayed instead.