isValid property

bool get isValid

Whether both shapes still exist in the world.

End events can arrive after one of the shapes has been destroyed.

Implementation

bool get isValid => shapeA.isValid && shapeB.isValid;