Skip to content

Commit

Permalink
fix: MapPosition.hashCode value distribution (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Dec 2, 2023
1 parent 7575841 commit b64efaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/misc/position.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MapPosition {
});

@override
int get hashCode => center.hashCode + bounds.hashCode + zoom.hashCode;
int get hashCode => Object.hash(center, bounds, zoom);

@override
bool operator ==(Object other) =>
Expand Down

0 comments on commit b64efaa

Please sign in to comment.