registerAnimationController method

void registerAnimationController(
  1. AnimationController controller
)

Registers an externally-created controller for tick dispatch and automatic disposal.

If the controller is already registered this is a no-op.

Implementation

void registerAnimationController(AnimationController controller) {
  if (!_controllers.contains(controller)) {
    _controllers.add(controller);
  }
}