match static method
Validates that the value matches another field's value.
Implementation
static FormFieldValidator<String> match(
String Function() getOther, [
String? message,
]) =>
(value) =>
value != getOther() ? (message ?? 'Fields do not match') : null;