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