place.dart 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import 'lat_lng.dart';
  2. class FFPlace {
  3. const FFPlace({
  4. this.latLng = const LatLng(0.0, 0.0),
  5. this.name = '',
  6. this.address = '',
  7. this.city = '',
  8. this.state = '',
  9. this.country = '',
  10. this.zipCode = '',
  11. });
  12. final LatLng latLng;
  13. final String name;
  14. final String address;
  15. final String city;
  16. final String state;
  17. final String country;
  18. final String zipCode;
  19. @override
  20. String toString() => '''FFPlace(
  21. latLng: $latLng,
  22. name: $name,
  23. address: $address,
  24. city: $city,
  25. state: $state,
  26. country: $country,
  27. zipCode: $zipCode,
  28. )''';
  29. @override
  30. int get hashCode => latLng.hashCode;
  31. @override
  32. bool operator ==(other) =>
  33. other is FFPlace &&
  34. latLng == other.latLng &&
  35. name == other.name &&
  36. address == other.address &&
  37. city == other.city &&
  38. state == other.state &&
  39. country == other.country &&
  40. zipCode == other.zipCode;
  41. }