itemComparator property

int Function(T element1, T element2)? itemComparator
final

Can be used to define a custom sorting for the elements inside each group.

If not set elements will be sorted with their natural sorting order or their specific Comparable implementation.

Implementation

final int Function(T element1, T element2)? itemComparator;