unregisterEvent method

void unregisterEvent(
  1. LyricEvent event,
  2. void callback(
    1. dynamic
    )
)

Implementation

void unregisterEvent(LyricEvent event, void Function(dynamic) callback) {
  _eventCallbacks[event]?.remove(callback);
}