matches method

  1. @override
bool matches(
  1. Map map
)
override

Implementation

@override
bool matches(Map<dynamic, dynamic> map) {
  var q = MapMatcher.traverse(map, field);
  if (!q.exists) return false;
  var value = q.value;
  if (value == null) return false;
  if (value is! List) return false;
  return value.any((element) {
    var matches = deepEquality.equals(element, this.value);
    print("Comparing: $element with ${this.value}: $matches");
    return matches;
  });
}