isDeepEq<T> function
Checks whether the given value is equal to the expected
value of type T
Implementation
Validator isDeepEq<T>(T expected) {
return and(
isType<T>(),
(value) => Result(
isValid: (_collectionEquals(value, expected)),
expected: 'equal to ${pretifyValue(expected)}',
value: value,
),
);
}