gmLatLngBoundsToLatLngBounds function

LatLngBounds gmLatLngBoundsToLatLngBounds(
  1. LatLngBounds latLngBounds
)

Converts a gmaps.LatLngBounds into a LatLngBounds.

Implementation

LatLngBounds gmLatLngBoundsToLatLngBounds(gmaps.LatLngBounds latLngBounds) {
  return LatLngBounds(
    southwest: gmLatLngToLatLng(latLngBounds.southWest),
    northeast: gmLatLngToLatLng(latLngBounds.northEast),
  );
}