srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
102 stars 53 forks source link

Isolate support #130

Closed saibotma closed 1 year ago

saibotma commented 2 years ago

Steps to reproduce the issue:

→ You'll notice that they don't equal because their Locations do not equal.

In this PR i override == and hashCode for Location, by assuming that two Locations are the same when their name is the same. I hope that this is sufficient, because additionally comparing transitionAt, transitionZone and zones would require using IterableEquality.equals which is not very performant.

I am happy to discuss any changes required to merge this thing asap.