lat_lng.dart 457 B

12345678910111213141516171819
  1. class LatLng {
  2. const LatLng(this.latitude, this.longitude);
  3. final double latitude;
  4. final double longitude;
  5. @override
  6. String toString() => 'LatLng(lat: $latitude, lng: $longitude)';
  7. String serialize() => '$latitude,$longitude';
  8. @override
  9. int get hashCode => latitude.hashCode + longitude.hashCode;
  10. @override
  11. bool operator ==(other) =>
  12. other is LatLng &&
  13. latitude == other.latitude &&
  14. longitude == other.longitude;
  15. }