offSubscriber abstract method
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);