validate method
This method should return null if the field is valid, a string corresponding to the error otherwise.
Implementation
@override
String? validate(TemplateForm value) {
return value.isComplete() ? null : 'ERROR';
}
This method should return null if the field is valid, a string corresponding to the error otherwise.
@override
String? validate(TemplateForm value) {
return value.isComplete() ? null : 'ERROR';
}