transformationController property
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.
This example shows how transformationController can be used to animate the
transformation back to its starting position.
link
To create a local project with this code sample, run:
flutter create --sample=widgets.InteractiveViewer.transformationController.1 mysample
See also:
- ValueNotifier, the parent class of TransformationController.
- TextEditingController for an example of another similar pattern.
Implementation
final TransformationController? transformationController;