zoom To
abstract suspend fun zoomTo(zoomFactor: Float, centroid: Offset = Offset.Unspecified, animationSpec: AnimationSpec<Float> = DefaultZoomAnimationSpec)
Zooms in or out around centroid to achieve a final zoom level specified by zoomFactor, and suspends until it's finished.
Parameters
zoom Factor
Target zoom level for the content. For example, a zoomFactor of 2f will set the content's zoom level to two times its original size. This value is internally coerced to at most ZoomSpec.maxZoomFactor.
centroid
Focal point for this zoom within the content's size. Defaults to the center of the content.
animation Spec
The animation spec to use or SnapSpec for no animation.