disposeRegistry static method
void
disposeRegistry(
- Map<
int, RaylibCallback< registryRaylibCallback< >dynamic, Function> , Function>
Disposes all callbacks in registry and clears it.
Intended to be called at shutdown by each concrete callback type via a typed static wrapper:
static void disposeRegistry() => RaylibCallback.disposeRegistry(callbackRegistry);
Implementation
static void disposeRegistry(Map<int, RaylibCallback> registry) {
registry.values.forEach((f) => f.dispose());
registry.clear();
}