getCustomAllocatorOrThrow method
RaylibTempAllocatorBase<RaylibTempBase<RaylibBase> , dynamic, dynamic>
getCustomAllocatorOrThrow(
- String key
Returns the custom allocator registered under key, or throws StateError if absent.
Implementation
RaylibTempAllocatorBase getCustomAllocatorOrThrow(String key) {
final alloc = customAllocators[key];
if (alloc == null) throw StateError("No custom allocator registered for '$key'!");
return alloc;
}