matchValidator function
Validates if the input value matches another value.
Implementation
String? matchValidator(String value, String matchValue) {
if (value.trim() != matchValue.trim()) {
return 'The values do not match.';
}
return null;
}