clearListeners method

  1. @protected
void clearListeners()

Removes all listeners added with addListener.

This method is typically called from the dispose method of the class using this mixin if the class also uses the AnimationEagerListenerMixin.

Calling this method will not trigger didUnregisterListener.

Implementation

@protected
void clearListeners() {
  _listeners.clear();
}