fitBounds method

bool fitBounds(
  1. LatLngBounds bounds,
  2. FitBoundsOptions options, {
  3. Offset offset = Offset.zero,
})

Implementation

bool fitBounds(
  LatLngBounds bounds,
  FitBoundsOptions options, {
  Offset offset = Offset.zero,
}) {
  final target = getBoundsCenterZoom(bounds, options);
  return move(
    target.center,
    target.zoom,
    offset: offset,
    source: MapEventSource.fitBounds,
  );
}