Pablichjenkov
10/18/2023, 10:41 PMuses/inline/copy
::Fun2, ::Fun3
This kind of design. The result something like:
Fun1(){
Fun2()
Fun3()
...
}
Perhaps a feature in the Compose plugin 🤔Youssef Shoaib [MOD]
10/18/2023, 11:21 PMPablichjenkov
10/19/2023, 1:03 AMFun1 call ::Fun2, ::Fun3 () { fun1-body-here }
call
could be combined with inline
Youssef Shoaib [MOD]
10/19/2023, 11:18 AMfun call(vararg blocks: () -> Unit) { for(block in blocks) block() }
//elsewhere
Fun1() {
call(::Fun2, ::Fun3)
...
}
Pablichjenkov
10/19/2023, 12:22 PMFun1WithReusableStuff(@Composable Slot...) {
Fun2()
Slot()
Fun3()
}
Then use it like:
Fun1WithReusableStuff {
... // Composable stuff
}