collisionShape property
Shape
get
collisionShape
The matching physics collision shape. A torus is not convex, so this
is a CompoundShape of convex chunks swept around the ring, which
preserves the central hole. See torusCollisionShape.
Implementation
Shape get collisionShape =>
torusCollisionShape(radius: _radius, tubeRadius: _tubeRadius);