isColliding property

bool get isColliding

Whether the object is currently colliding or not.

Implementation

bool get isColliding {
  return _activeCollisions?.isNotEmpty ?? false;
}