A method that validates the selected items. Returns an error string to display as per the validation, or null otherwise.
final String? Function(List<T>)? listValidator;