coordinates property
dynamic
get
coordinates
If you have the google_maps_flutter
package, this method will return the coordinates of the place as
a LatLng
object. Otherwise, it'll be returned as Map.
Implementation
get coordinates {
try {
return LatLng(latitude:_coordinates["lat"],longitude: _coordinates["lng"] );
} catch (e) {
print(
"You appear to not have the `google_maps_flutter` package installed. In this case, this method will return an object with the latitude and longitude");
return _coordinates;
}
}