Need to pause the Carousel animation regularly and call a function
问题 I have a Carousel animation: which is working fine but I need to pause it after a duration and call a function. As soon as the cards change their position, I want to pause it, call my function, and as soon as the execution of that function is over, again restart the animation. And I want to do this indefinitely. I am creating my animation using AnimationBuilder 's build() function. I tried to make use of AnimationPlayer 's pause() and restart() methods but was not able to set them properly.