isDeepEq<T> function

IEskValidator isDeepEq<T>(
  1. T otherValue
)

Checks whether the given value is equal to the otherValue value of type T

Implementation

IEskValidator isDeepEq<T>(T otherValue) =>
    isType<T>() &
    validator(
      (value) => _collectionEquals(value, otherValue),
      (value) => 'equal to ${pretifyValue(otherValue)}',
    );