addListener method
- VoidCallback listener
override
Calls the listener every time the value of the animation changes.
Listeners can be removed with removeListener.
Implementation
@override
void addListener(VoidCallback listener) {
didRegisterListener();
parent.addListener(listener);
}