simple_grouped_listview library Null safety

Classes

GroupedListView<H, I>
GroupedListView Widget The goal of this widget is to take a list of items as an input, group them, and display them, grouped with a header In order to do that, it needs 4 things
IndexedItem<T>
IndexedItem is used to keep a trace of the index of the item in the original List

Typedefs

HeaderBuilder<H> = Widget Function(BuildContext context, H header)
The HeaderBuilder is a function that render a header of type H as a Widget, it takes a BuildContext and a H as parameters. It is used by GroupedListView<H, I> to render the headers of type H
ItemsListBuilder<I> = Widget Function(BuildContext context, List<IndexedItem<I>> items)
The ItemsListBuilder is a function that render a list of items of type I as a Widget, it takes a BuildContext and a List<IndexedItem<I>> as parameters.
ItemsWithHeaderBuilder<H, I> = Widget Function(BuildContext context, H header, List<IndexedItem<I>> items)
The ItemsWithHeaderBuilder is a function that render a list of items of type I with their header as a Widget, it takes a BuildContext, a H, and a List<IndexedItem<I>> as parameters.