transformationController property Null safety

TransformationController? transformationController

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.

This example shows how transformationController can be used to animate the transformation back to its starting position.
To create a local project with this code sample, run:
flutter create --sample=widgets.InteractiveViewer.transformationController.1 mysample

See also:


final TransformationController? transformationController;