IndexedWidgetBuilder typedef

IndexedWidgetBuilder = Widget Function(BuildContext context, int index)

Signature for a function that creates a widget for a given index, e.g., in a list.

Used by ListView.builder and other APIs that use lazily-generated widgets.

See also:

Implementation

typedef IndexedWidgetBuilder = Widget Function(BuildContext context, int index);