Landmark.withLatLng constructor
Creates a landmark tied to specific geographic coordinates.
Use this constructor to create a new landmark and immediately set its centroid coordinates.
Parameters
latitude: The latitude of the landmark's centroid in decimal degrees.longitude: The longitude of the landmark's centroid in decimal degrees.
Implementation
factory Landmark.withLatLng({
required final double latitude,
required final double longitude,
}) =>
Landmark()
..coordinates = Coordinates(latitude: latitude, longitude: longitude);