onValidateField method

String? onValidateField(
  1. dynamic text
)

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

String? onValidateField(text) {
  return _validationError;
}