Function to check if the item added is valid or not.
final bool Function(ValueItem<T>)? verifyInputItem;