unregister static method
Implementation
static Future<void> unregister(String eventName, Function? callback) async {
if (callbacks.containsKey(eventName)) {
var existed = callbacks[eventName];
existed?.remove(callback);
callbacks.remove(eventName);
callbacks.putIfAbsent(eventName, () => existed);
}
_libraryEventSubscription.resume();
}