checkCollision function

bool checkCollision(
  1. Rect a,
  2. Rect b
)

Implementation

bool checkCollision(Rect a, Rect b) => a.overlaps(b);