presentation/game/pooled_component library
Mixins
- PooledComponent
-
Mixin for a Flame
Componentthat automatically returns itself to whatever pool acquired it once Flame removes it from the component tree (FEAT-48) — pairsObjectPool(core/utils/object_pool.dart) with Flame's own removal lifecycle so a caller never has to remember to callpool.release(this)manually alongsideremoveFromParent().