equals static method
Ensures the string matches the comparison string exactly.
Implementation
static String? Function(String?) equals(
String comparison, {
String errorMessage = 'Values do not match',
}) {
return _build(errorMessage, (v) => v.equals(comparison));
}