INNER CODE UNIT · Dart
SliverGroupedListView
Dimibe/grouped_list · lib/sliver_grouped_list.dart:9
class SliverGroupedListView<T, E> extends StatefulWidget {
/// Items of which [itemBuilder] or [indexedItemBuilder] produce the list.
final List<T> elements;
/// Defines which elements are grouped together.
///
/// Function is called for each element in the list, when equal for two
/// elements, those two belong to the same group.
final E Function(T element) groupBy;
/// Can be used to define a custom sorting for the groups.
///
/// If not set groups will be sorted with their natural sorting order or their
/// specific [Comparable] implementation.
final int Function(E value1, E value2)? groupComparator;
/// Can be used to define a custom sorting for the elements inside each group.
///