Open anburocky3 opened 2 years ago
@themisir If i pass this
final FormFieldValidator? validator;
with this, It works.
final dynamic validator;
perhaps can change the type to
final FormFieldValidator<String>? validator;
@themisir If i pass this
final FormFieldValidator? validator;
with this, It works.
final dynamic validator;
Note that in every example given for this library, the .build()
method is always called at the end of a validation chain. This method has the following shape:
String? Function(String?) build()
which is the same shape as the TextFormField's validator parameter.
You should change your prop from:
final FormFieldValidator? validator;
to:
final String? Function(String?)? validator;
Passing
ValidationBuilder()
to validator has this error:This is my code:
And I'm my custom
TextField()
is