fitBounds method

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

Move and zoom the map to perfectly fit bounds, with additional configurable options

For information about return value meaning and emitted events, see move's documentation.

Implementation

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