requireDensity
Common
fun DelegatableNode.requireDensity(): Density
Returns the current Density of the LayoutNode that this DelegatableNode is attached to. If the node is not attached, this function will throw an IllegalStateException.
Returns the current [Density] of the LayoutNode that this [DelegatableNode] is attached to.
fun DelegatableNode.requireDensity(): Density
Returns the current Density of the LayoutNode that this DelegatableNode is attached to. If the node is not attached, this function will throw an IllegalStateException.