equals<T> static method
when valid:
- value is null
- value == given value
Implementation
static FormeValidator<T> equals<T>(T value, {String errorText = ''}) {
return (f, T v) => value == null || v == value ? null : errorText;
}