onEditorZoomScaleUpdate property

GestureScaleUpdateCallback? onEditorZoomScaleUpdate
final

Called when the user updates a pan or scale gesture on the editor.

At the time this is called, the TransformationController will have already been updated to reflect the change caused by the interaction, if the interaction caused the matrix to change.

The coordinates provided in the details' focalPoint and localFocalPoint are normal Flutter event coordinates, not InteractiveViewer scene coordinates. See TransformationController.toScene for how to convert these coordinates to scene coordinates relative to the child.

See also:

Implementation

final GestureScaleUpdateCallback? onEditorZoomScaleUpdate;