Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MapCamera equality & hashCode #1614

Merged

Conversation

jjoelson
Copy link
Contributor

This will ensure assertions like the one described in this issue work as intended.

Copy link
Member

@JaffaKetchup JaffaKetchup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jjoelson,

Thanks for resolving this yourself so quickly! I'll give it a test tomorrow based on your issue.

If you could just update your equality method to check for identity, as is good practise, that would be great :) I can do it if you don't have time.

lib/src/map/camera/camera.dart Show resolved Hide resolved
@JaffaKetchup JaffaKetchup added this to In progress in v6 Release Planning Aug 14, 2023
@JaffaKetchup JaffaKetchup changed the title Implement == and hashCode in MapCamera Implement MapCamera equality & hashCode Aug 14, 2023
This will ensure assertions like the one described in [this issue](fleaflet#1613)
work as intended.
@jjoelson jjoelson force-pushed the 1613-map-camera-assertion-fix branch from 0ee39be to 12c71d6 Compare August 14, 2023 20:51
@JaffaKetchup JaffaKetchup self-requested a review August 14, 2023 21:14
@rorystephenson
Copy link
Contributor

Nice one @jjoelson! This would definitely be worth adding a test for.

Copy link
Member

@JaffaKetchup JaffaKetchup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contribution!

@JaffaKetchup JaffaKetchup merged commit 7088758 into fleaflet:master Aug 15, 2023
6 checks passed
@JaffaKetchup JaffaKetchup moved this from In progress to Done in v6 Release Planning Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
3 participants