dart list has same values code example
Example: dart list equality
Function eq = const ListEquality().equals;
print(eq([1,'two',3], [1,'two',3])); // => true
Function eq = const ListEquality().equals;
print(eq([1,'two',3], [1,'two',3])); // => true