---
title: "requireLayoutDirection"
description: "Returns the current [LayoutDirection] of the LayoutNode that this [DelegatableNode] is attached
to. If the node is not attached, this function will throw an [IllegalStateException]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun DelegatableNode.requireLayoutDirection(): LayoutDirection
```


Returns the current `LayoutDirection` of the LayoutNode that this `DelegatableNode` is attached
to. If the node is not attached, this function will throw an `IllegalStateException`.



