ItemBuilder<T> typedef

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

Typedef for item builders

Item builders receive:

  • item: The data item
  • index: The position of the item in the list

Should return the widget to display

Implementation

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