onCollisionEnd method

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

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

Implementation

@override
@mustCallSuper
void onCollisionEnd(PositionComponent other) {
  super.onCollisionEnd(other);

  for (final fn in _collisionEndFns) {
    fn(other);
  }
}