addListener method

  1. @override
void addListener (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);
}