isDeepEq<T> function
- T otherValue
Checks whether the given value is equal to the otherValue
value of type T
Implementation
IValidator isDeepEq<T>(T otherValue) =>
isType<T>() &
validator(
(value) => _collectionEquals(value, otherValue),
(value) => Expectation(
message: 'equal to ${prettifyValue(otherValue)}',
value: value,
code: 'value.deep_equal_mismatch',
data: {
'expected': prettifyValue(otherValue),
'found': prettifyValue(value),
'mode': 'deep'
},
),
);