Similarly of the validator property of the TextFormField.
final FormFieldValidator<String>? validator;