I have a question. When working with Dart, I can't check to see if 2 arrays are equal. (in other languages, I can do with ==) In fact, I just can do that == with String or number.
List arr1 = [1,2,3];
List arr2 = [1,2,3];
if (arr1 == arr2) {
print("equal");
} else {
print("not equal");
}
// Output: not equal.
So I wonder how does that make sense. I mean, How we can do if the == is just work for the cases of String or number (if the values compared are the same). How do I have to do if I want to check that kind of comparison (equal) for List, Map, .. It just work for String & number.