The default behavior for all Objects in Dart is to return true if and only if this object and other are the same object. How do I check if the values are the same?
import 'dart:collection' show HashMap;
final Map<int, String> planets1 = HashMap(); // Is a HashMap
final Map<int, String> planets2 = HashMap(); // Is another HashMap
planets1.addAll({5: 'Saturn', 6: 'Jupiter', 3: 'Earth', 4: 'Mars'});
planets2.addAll({5: 'Saturn', 6: 'Jupiter', 3: 'Earth', 4: 'Mars'});
print(planets1 == planets2); // prints false