GeoPoint.fromLatLng constructor

GeoPoint.fromLatLng({
  1. required LatLng point,
  2. 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!);
}