Skip to content

Commit e3ad149

Browse files
committed
fix: remove usage hashValues in favor Object.hash
1 parent a1566f0 commit e3ad149

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

lib/src/annotation.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class InfoWindow {
8989
}
9090

9191
@override
92-
int get hashCode => hashValues(title.hashCode, snippet, anchor);
92+
int get hashCode => Object.hash(title.hashCode, snippet, anchor);
9393

9494
@override
9595
String toString() {

lib/src/annotation_updates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class _AnnotationUpdates {
8787

8888
@override
8989
int get hashCode =>
90-
hashValues(annotationsToAdd, annotationIdsToRemove, annotationsToChange);
90+
Object.hash(annotationsToAdd, annotationIdsToRemove, annotationsToChange);
9191

9292
@override
9393
String toString() {

lib/src/camera.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class CameraPosition {
7373
}
7474

7575
@override
76-
int get hashCode => hashValues(heading, target, pitch, zoom);
76+
int get hashCode => Object.hash(heading, target, pitch, zoom);
7777

7878
@override
7979
String toString() =>

lib/src/circle_updates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class _CircleUpdates {
8787

8888
@override
8989
int get hashCode =>
90-
hashValues(circlesToAdd, circleIdsToRemove, circlesToChange);
90+
Object.hash(circlesToAdd, circleIdsToRemove, circlesToChange);
9191

9292
@override
9393
String toString() {

lib/src/location.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class LatLng {
4444
}
4545

4646
@override
47-
int get hashCode => hashValues(latitude, longitude);
47+
int get hashCode => Object.hash(latitude, longitude);
4848
}
4949

5050
/// A latitude/longitude aligned rectangle.
@@ -116,5 +116,5 @@ class LatLngBounds {
116116
}
117117

118118
@override
119-
int get hashCode => hashValues(southwest, northeast);
119+
int get hashCode => Object.hash(southwest, northeast);
120120
}

lib/src/polygon_updates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class _PolygonUpdates {
8787

8888
@override
8989
int get hashCode =>
90-
hashValues(polygonsToAdd, polygonIdsToRemove, polygonsToChange);
90+
Object.hash(polygonsToAdd, polygonIdsToRemove, polygonsToChange);
9191

9292
@override
9393
String toString() {

lib/src/polyline_updates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class _PolylineUpdates {
8181

8282
@override
8383
int get hashCode =>
84-
hashValues(polylinesToAdd, polylineIdsToRemove, polylinesToChange);
84+
Object.hash(polylinesToAdd, polylineIdsToRemove, polylinesToChange);
8585

8686
@override
8787
String toString() {

lib/src/snapshot_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class SnapshotOptions {
4545
}
4646

4747
@override
48-
int get hashCode => hashValues(showBuildings, showPointsOfInterest);
48+
int get hashCode => Object.hash(showBuildings, showPointsOfInterest);
4949

5050
@override
5151
String toString() =>

lib/src/ui.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class MinMaxZoomPreference {
8686
}
8787

8888
@override
89-
int get hashCode => hashValues(minZoom, maxZoom);
89+
int get hashCode => Object.hash(minZoom, maxZoom);
9090

9191
@override
9292
String toString() {

0 commit comments

Comments
 (0)