willDisposeAnimationController property
getter/setter pair
Whether to takeover the controller created by createAnimationController.
If true, this route will call AnimationController.dispose when the controller is no longer needed. If false, the controller should be disposed by whoever owned it.
It defaults to true
.
Implementation
bool willDisposeAnimationController = true;