requiredDepth
Android
public fun SubspaceModifier.requiredDepth(depth: Dp): SubspaceModifier
Declare the size of the content to be exactly depth dp along the z dimension, disregarding the incoming VolumeConstraints.
This is in contrast to SubspaceModifier.depth, which respects the parent's constraints. requiredDepth will ignore the minDepth and maxDepth from the incoming constraints, which can be useful for sizing an element to a specific value even if it exceeds the parent's bounds.