dispose method

  1. @override
  2. @mustCallSuper
void dispose()
override

Frees all built-in and custom allocators, then delegates to RaylibModule.dispose.

Implementation

@override
@mustCallSuper
void dispose() {
  super.dispose();

  debugFreeInfo('Freeing ${allocators.length} built-in allocators');
  allocators.values.forEach((a) => a.dispose());

  if (customAllocators.isNotEmpty) {
    debugFreeInfo('Freeing ${customAllocators.length} custom allocators');
    customAllocators.values.forEach((a) => a.dispose());
  }
}