offAll method
Removes all callbacks subscribed to the given event
.
This method removes the list of callbacks subscribed to the given event
from the cache, and returns true
if the event was found and removed. If
no callbacks are found for the given event
, this method returns false
.
Implementation
bool offAll(String event) => _cache.remove(event) != null;