Callback, indicating whether the provided T item should be added to the p, or not.
T
final bool Function(T) addIf;