Callback, called to indicate whether the provided T is the first.
T
null returned means that the T shouldn't participant in such test.
null
final bool? Function(T, int)? isFirst;