CustomSortCallback typedef

CustomSortCallback = int Function(Message a, Message b)

Orders two messages that have the same timestamp.

Returns a negative number if a comes first, a positive number if b comes first, or 0 to keep their order.

Implementation

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