validator property

FormFieldValidator<String>? validator
final

validator function used to validate the text input If the user enters valid text, the MDSInput appears normally without any warnings to the user make sure to pass textFormFieldKey to validate MDSInput

Implementation

final FormFieldValidator<String>? validator;