onValidateField method
Validates the input field for the dropdown based on its current state.
Returns the current validation error if any, otherwise returns null
.
text
: The text to validate.
Implementation
@override
String? onValidateField(text) {
if (multiSelectValidator != null) {
setValidationError = multiSelectValidator!(selectedValues);
}
notifyListeners();
return super.onValidateField(text);
}