hasOverlap function

bool hasOverlap(
  1. List a,
  2. List b
)

Implementation

bool hasOverlap(List<dynamic> a, List<dynamic> b) {
  final matches = a.where((x) => b.contains(x));
  return matches.length == a.length;
}