ItemBuilder<T> typedef

ItemBuilder<T> = Widget Function(BuildContext context, int index)

Typedef for item builders

Item builders receive:

  • context: The build context
  • index: The position of the item in the list

Should return the widget to display

Implementation

typedef ItemBuilder<T> = Widget Function(BuildContext context, int index);