presentation/game/pooled_component library

Mixins

PooledComponent
Mixin for a Flame Component that automatically returns itself to whatever pool acquired it once Flame removes it from the component tree (FEAT-48) — pairs ObjectPool (core/utils/object_pool.dart) with Flame's own removal lifecycle so a caller never has to remember to call pool.release(this) manually alongside removeFromParent().