iamthevoid
03/21/2022, 2:01 PMildar.i [Android]
03/21/2022, 2:03 PMAdam Powell
03/21/2022, 2:26 PM@Composable
fun ButtonStyle(...) = ButtonStyle(...)
then you get the same call site characteristics and user expectations as a constructor, plus you're forced to keep a "real" constructor public, which ensures that you can create these objects outside of composition, aiding both aggregation as part of other state objects and testabilityJavier
03/21/2022, 2:43 PMAdam Powell
03/21/2022, 6:48 PM