itemComparator property

(int Function(T item1, T item2)?) 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 item1, T item2)? itemComparator;