animatedZoomOut method

FutureOr<void> animatedZoomOut({
  1. Curve? curve,
  2. String? customId,
})

Remove one level to the current zoom level.

If the current zoom level is 0, nothing will happen.

If curve is not specified, the one specified in the constructor will be used.

Implementation

FutureOr<void> animatedZoomOut({Curve? curve, String? customId}) {
  final newZoom = mapController.camera.zoom - 1;
  if (newZoom < 0) return null;

  return animateTo(zoom: newZoom, curve: curve, customId: customId);
}