match static method

FormFieldValidator<String> match({
  1. required String otherValue,
  2. required String mismatchMessage,
})

Implementation

static FormFieldValidator<String> match({
  required String otherValue,
  required String mismatchMessage,
}) => (String? value) {
  if (value != otherValue) {
    return mismatchMessage;
  }
  return null;
};