onCollisionCallback property

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

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

Implementation

@override
CollisionCallback<PositionComponent>? onCollisionCallback;