castsShadows property

  1. @Deprecated('Use shadowCastingMode instead.')
bool get castsShadows

Whether this node's meshes cast shadows.

A two-state view of shadowCastingMode: reading reports whether the mode casts at all, and writing selects ShadowCastingMode.on or ShadowCastingMode.off. Prefer setting the mode directly, which also reaches the double-sided and shadows-only cases.

Implementation

@Deprecated('Use shadowCastingMode instead.')
bool get castsShadows => shadowCastingMode != ShadowCastingMode.off;
  1. @Deprecated('Use shadowCastingMode instead.')
set castsShadows (bool value)

Implementation

@Deprecated('Use shadowCastingMode instead.')
set castsShadows(bool value) =>
    shadowCastingMode = value ? ShadowCastingMode.on : ShadowCastingMode.off;