extended location and latlng models

This commit is contained in:
2026-06-19 13:21:08 +02:00
parent f1c1578620
commit a71cc454eb
2 changed files with 31 additions and 2 deletions
+14
View File
@@ -12,4 +12,18 @@ class LatLng {
Map<String, double> toJson() {
return {'lat': lat, 'lng': lng};
}
@override
bool operator ==(Object other) {
if (other is! LatLng) return false;
return hashCode == other.hashCode;
}
@override
int get hashCode => Object.hash(lat, lng);
@override
String toString() {
return '${lat.toString()}, ${lng.toString()}';
}
}