match static method

FormFieldValidator<String> match(
  1. String getOther(), [
  2. String? message
])

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;