isEqual method

bool isEqual(
  1. Map map
)

Implementation

bool isEqual(final Map map) {
  if (!map.keys.toSet().containsAll(keys.toSet()) ||
      !keys.toSet().containsAll(map.keys.toSet())) return false;
  for (final key in keys) {
    if (map[key] != this[key]) {
      return false;
    }
  }
  return true;
}