Answers for "how to compare two lists in flutter"

2

dart compare two lists

if (list1.any((item) => list2.contains(item))) {
    // Lists have at least one common element
} else {
    // Lists DON'T have any common element
}
Posted by: Guest on July-21-2020

Code answers related to "how to compare two lists in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language