deleted method

  1. @override
void deleted(
  1. Entity entity
)
override

Called when an entity is being deleted from the world.

Implementation

@override
void deleted(Entity entity) => removeFromPlayer(entity);