offEvent abstract method

void offEvent(
  1. String event
)

Removes all listeners for a specific event.

This clears the entire listener list for the event.

  • event: The event name to clear.

Example:

events.offEvent('user.created');

Implementation

void offEvent(String event);