validator property

String? Function(DropDownModel<T>?)? validator
final

Provides a DropDownModel object if selected, and null if not

Should return null when no validation error is present, and a String if there is an error

Implementation

final String? Function(DropDownModel<T>?)? validator;