validate method
Implementation
@override
String? validate(F form, E key, String value) {
final otherValue = form.getValueByKey(otherKey) as String?;
if (value != otherValue) {
return errorMessage ?? loc.valuesDoNotMatch;
}
return null;
}