---
title: "GenericShape"
description: "Creates [Shape] defined by applying the provided [builder] on a [Path]."
type: "class"
---

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


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class GenericShape(
    private val builder: Path.(size: Size, layoutDirection: LayoutDirection) -> Unit
) : Shape
```


Creates `Shape` defined by applying the provided `builder` on a `Path`.

#### Parameters

| | |
| --- | --- |
| builder | the builder lambda to apply on a `Path` |




