equals static method

FormeValidator equals(
  1. dynamic value, {
  2. String errorText = '',
})

when valid:

  1. value is null
  2. value == given value

Implementation

static FormeValidator equals(dynamic value, {String errorText = ''}) {
  return (f, dynamic v) => value == null || v == value ? null : errorText;
}