offSubscriber abstract method

void offSubscriber(
  1. Object subscriber
)

Removes all events registered by a specific subscriber.

This is useful for cleanup when a component is destroyed. All listeners associated with the subscriber are removed.

  • subscriber: The object whose events to remove.

Example:

events.offSubscriber(this);

Implementation

void offSubscriber(Object subscriber);