onCollisionEnd method

  1. @mustCallSuper
void onCollisionEnd(
  1. T other
)

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

Implementation

@mustCallSuper
void onCollisionEnd(T other) {
  activeCollisions.remove(other);
  onCollisionEndCallback?.call(other);
}