bool arraysEqual(List a, List b) { if (a.length != b.length) return false; return a.every((e) => b.contains(e)); }