addAnimationListener method
Implementation
void addAnimationListener(Function listener) {
removeAnimationListener();
_animationListener = listener;
_animController?.addListener(_animationListener!);
}
void addAnimationListener(Function listener) {
removeAnimationListener();
_animationListener = listener;
_animController?.addListener(_animationListener!);
}