match method

Validator match(
  1. String? getValue(), {
  2. String? message,
})

Validates that the input matches another field.

Implementation

Validator match(String? Function() getValue, {String? message}) {
  _rules.add(MatchRule(getValue, message ?? _messages.match));
  return this;
}