toGoogleLatLng method
LatLng
toGoogleLatLng()
Converts this GeoPoint to a google.LatLng for use with google_maps_flutter.
Example:
final point = GeoPoint(latitude: 37.7749, longitude: -122.4194);
final googleLatLng = point.toGoogleLatLng();
print(googleLatLng); // LatLng(37.7749, -122.4194)
Implementation
google.LatLng toGoogleLatLng() {
return google.LatLng(latitude, longitude);
}