listEquals function

dynamic listEquals(
  1. List a,
  2. List b
)

Implementation

listEquals(List a, List b) {
  return a.toSet().difference(b.toSet()).isEmpty && a.length == b.length;
}