Returns a list of elements that exist in both lists.

Use Iterable.toSet() to get the unique values in b.
Use Iterable.toSet(), Iterable.where() and Iterable.contains() to keep only the values in a contained in b, Iterable.toList() to return the appropriate result.

继续阅读 30秒学会 Dart 片段 – intersection