transformationController property

TransformationController? transformationController
final

A TransformationController for the transformation performed on the child.

Whenever the child is transformed, the Matrix4 value is updated and all listeners are notified. If the value is set, InteractiveViewer will update to respect the new value.

{@tool dartpad} This example shows how transformationController can be used to animate the transformation back to its starting position.

** See code in examples/api/lib/widgets/interactive_viewer/interactive_viewer.transformation_controller.0.dart ** {@end-tool}

See also:

Implementation

final TransformationController? transformationController;