castShadows property
Whether it blocks the light of lights with Light.shadows: true unless set. Off for what shouldn't darken the ground: water, a glow, a ghost.
Implementation
bool get castShadows => _castShadows;
Implementation
set castShadows(bool value) {
_checkChangeable();
final old = _castShadows;
_castShadows = value;
if (_write() case final failed?) {
_castShadows = old;
failed.raise();
}
}