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

Object.hash #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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