which allows you to have a composable factory. When you use it the real composable would be invoked right on the applied Layout. imagine if you apply the same modifier object for two Layouts, in this case they will not share the same state
➕ 1
s
Se7eN
11/20/2020, 3:37 PM
Okay so both the customModifiers in this case will have different states, right?
Copy code
Box {
Image(customModifier)
Image(customModifier)
}
Modifier.customModifier = composed {
// some state
}