match static method
Implementation
static String? Function(dynamic) match(
String Function() otherValueGetter, {
String message = "Values do not match",
}) {
return (value) {
if (value == null) return null;
final other = otherValueGetter();
if (value.toString() != other) return message;
return null;
};
}