castsShadow property
Whether this node is drawn into the shadow maps.
A two-state view of shadowCasting, kept because every level document, every application and every test in this repository was written against it. Reading it asks only whether the node casts at all, so a ShadowCastingMode.shadowsOnly proxy reads as true; writing it moves between ShadowCastingMode.on and ShadowCastingMode.off and forgets a finer mode that was set, which is why new code sets shadowCasting.
Implementation
bool get castsShadow => shadowCasting.casts;
Implementation
set castsShadow(bool value) =>
shadowCasting = value ? ShadowCastingMode.on : ShadowCastingMode.off;