moveCameraBounds method

void moveCameraBounds(
  1. LatLng southwest,
  2. LatLng northeast, {
  3. int? padding,
})

Implementation

void moveCameraBounds(LatLng southwest, LatLng northeast, {int? padding}) {
  getMapController().then((controller) => controller.animateCamera(
      CameraUpdate.newLatLngBounds(
          LatLngBounds(southwest: southwest, northeast: northeast),
          padding?.toDouble() ?? 50)));
}