The validator for the dropdown.
final String? Function(List<DropdownItem<T>>? selectedOptions)? validator;