equals static method

String? Function(String?) equals(
  1. String comparison, {
  2. String errorMessage = 'Values do not match',
})

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));
}