off abstract method

void off(
  1. String event,
  2. EventListener listener
)

Removes a specific listener from an event.

If the listener isn't registered for the event, this is a no-op. Note: This requires the exact function reference; anonymous functions can't be removed this way.

  • event: The event name.
  • listener: The listener function to remove.

Example:

events.off('user.created', myHandler);

Implementation

void off(String event, EventListener listener);