addListener method

void addListener (VoidCallback listener)

Calls the listener every time the value of the animation changes.

Listeners can be removed with removeListener.

Implementation

void addListener(VoidCallback listener) => parent.addListener(listener);