Skip to content

Commit

Permalink
fix: remove usage hashValues in favor Object.hash
Browse files Browse the repository at this point in the history
  • Loading branch information
mikklfr committed Jan 10, 2025
1 parent a1566f0 commit e3ad149
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/src/annotation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class InfoWindow {
}

@override
int get hashCode => hashValues(title.hashCode, snippet, anchor);
int get hashCode => Object.hash(title.hashCode, snippet, anchor);

@override
String toString() {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/annotation_updates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class _AnnotationUpdates {

@override
int get hashCode =>
hashValues(annotationsToAdd, annotationIdsToRemove, annotationsToChange);
Object.hash(annotationsToAdd, annotationIdsToRemove, annotationsToChange);

@override
String toString() {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class CameraPosition {
}

@override
int get hashCode => hashValues(heading, target, pitch, zoom);
int get hashCode => Object.hash(heading, target, pitch, zoom);

@override
String toString() =>
Expand Down
2 changes: 1 addition & 1 deletion lib/src/circle_updates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class _CircleUpdates {

@override
int get hashCode =>
hashValues(circlesToAdd, circleIdsToRemove, circlesToChange);
Object.hash(circlesToAdd, circleIdsToRemove, circlesToChange);

@override
String toString() {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class LatLng {
}

@override
int get hashCode => hashValues(latitude, longitude);
int get hashCode => Object.hash(latitude, longitude);
}

/// A latitude/longitude aligned rectangle.
Expand Down Expand Up @@ -116,5 +116,5 @@ class LatLngBounds {
}

@override
int get hashCode => hashValues(southwest, northeast);
int get hashCode => Object.hash(southwest, northeast);
}
2 changes: 1 addition & 1 deletion lib/src/polygon_updates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class _PolygonUpdates {

@override
int get hashCode =>
hashValues(polygonsToAdd, polygonIdsToRemove, polygonsToChange);
Object.hash(polygonsToAdd, polygonIdsToRemove, polygonsToChange);

@override
String toString() {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/polyline_updates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class _PolylineUpdates {

@override
int get hashCode =>
hashValues(polylinesToAdd, polylineIdsToRemove, polylinesToChange);
Object.hash(polylinesToAdd, polylineIdsToRemove, polylinesToChange);

@override
String toString() {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/snapshot_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SnapshotOptions {
}

@override
int get hashCode => hashValues(showBuildings, showPointsOfInterest);
int get hashCode => Object.hash(showBuildings, showPointsOfInterest);

@override
String toString() =>
Expand Down
2 changes: 1 addition & 1 deletion lib/src/ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class MinMaxZoomPreference {
}

@override
int get hashCode => hashValues(minZoom, maxZoom);
int get hashCode => Object.hash(minZoom, maxZoom);

@override
String toString() {
Expand Down

0 comments on commit e3ad149

Please sign in to comment.