validate method

  1. @override
String? validate(
  1. F form,
  2. E key,
  3. String value
)
override

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;
}