onCollisionCallback property

  1. @override
CollisionCallback<PositionComponent>? onCollisionCallback
getter/setter pairinherited

Assign your own CollisionCallback if you want a callback when this shape collides with another PositionComponent.

Implementation

@override
CollisionCallback<PositionComponent>? onCollisionCallback;