GeoPoint.fromLatLng constructor
GeoPoint.fromLatLng({
- required LatLng point,
- String? name,
Get a GeoPoint from LatLng
coordinates
name is the name of this GeoPoint and
point
is a LatLng
coordinate
Implementation
GeoPoint.fromLatLng({required LatLng point, this.name})
: latitude = point.latitude,
longitude = point.longitude {
if (name != null) slug = slugify(name!);
}