IndexedWidgetBuilder typedef
IndexedWidgetBuilder =
Widget Function(BuildContext context, int index)
A scrollable list of child widgets.
Children remain in the element tree (unlike the old implementation that rendered children to strings). Stateful children are fully supported.
Provide a ScrollController to share scroll state with a Scrollbar.
Flutter-like constructors are available:
- ListView for an explicit
childrenlist - ListView.builder for index-based item generation
- ListView.separated for generated separators between items
Implementation
typedef IndexedWidgetBuilder = Widget Function(BuildContext context, int index);