clearListeners method Null safety

  1. @protected
void clearListeners()
protected">@protected

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();
}