addListener

addListener method

Whenever the animation’s value changes, the animation notifies all the listeners added with addListener.

Typically, a State object that listens to an animation will call setState on itself in its listener callback to notify the widget system that it needs to rebuild with the new value of the animation.

addListener on api.flutter.dev

Related concepts

addListener — Structure map

Clickable & Draggable!

addListener — Related pages: