equals<T> static method
Implementation
static Validator<T> equals<T>(T other, {required ValidatorResult onNotEqual}) {
return (value) {
if (value != other) return onNotEqual;
return null;
};
}
static Validator<T> equals<T>(T other, {required ValidatorResult onNotEqual}) {
return (value) {
if (value != other) return onNotEqual;
return null;
};
}