Nacho Ruiz Martin
07/25/2021, 10:49 AMCLOVIS
07/25/2021, 10:58 AMinterface MyComposable : @Composable (Int, Int, String) -> Unit
Nacho Ruiz Martin
07/25/2021, 11:04 AM@Composable
fun MyTextField(
val value: String,
val onValueChange,
...
) {
TextField(
value = value,
...
)
}
Chrimaeon
07/25/2021, 11:35 AMNacho Ruiz Martin
07/25/2021, 11:35 AMZun
07/25/2021, 1:40 PMNacho Ruiz Martin
07/25/2021, 2:57 PMDominaezzz
07/25/2021, 4:37 PMCLOVIS
07/25/2021, 4:55 PMdataarg
modifier that adds all the parameters of a data class' constructor to that function
if you really want to make a plugin, that essentially solves this problem and can be useful in many other places as wellNacho Ruiz Martin
07/26/2021, 6:52 AMCLOVIS
07/26/2021, 9:18 AMNacho Ruiz Martin
07/26/2021, 9:31 AM