containsAny method

bool containsAny(
  1. R other
)

Implementation

bool containsAny(R other) {
  final common = {
    ...keys,
    ...other.keys,
  }.where(other.containsKey).where(containsKey);
  for (final key in common) {
    if (other[key] == this[key]) {
      return true;
    }
  }
  return false;
}