CustomSortCallback typedef

CustomSortCallback = int Function(Message a, Message b)

Custom sort callback for message sorting.

Takes two Message objects and returns an integer indicating their relative order.

The return value should be:

  • Less than 0 if a should come before b
  • 0 if a and b are equal

Implementation

typedef CustomSortCallback = int Function(Message a, Message b);