fitBounds method

  1. @override
void fitBounds(
  1. LatLngBounds bounds,
  2. {FitBoundsOptions? options = const FitBoundsOptions(padding: EdgeInsets.all(12.0))}
)
override

Fits the map bounds. Optional constraints can be defined through the options parameter.

Implementation

@override
void fitBounds(
  LatLngBounds bounds, {
  FitBoundsOptions? options =
      const FitBoundsOptions(padding: EdgeInsets.all(12.0)),
}) {
  _state.fitBounds(bounds, options!);
}