onCollisionEnd method

  1. @override
void onCollisionEnd(
  1. PositionComponent other
)
override

onCollisionEnd is called once when this object has stopped colliding with other.

Implementation

@override
void onCollisionEnd(PositionComponent other) {
  if (other is T) {
    onContactExit(other);
  }
  super.onCollisionEnd(other);
}