Youssef Shoaib [MOD]
02/19/2022, 1:59 PMfun main() {
val test by MyCustomDelegate() = 5 //doesn't work
test = 5 //This is the current workaround
}
I don't want to change the implementation of MyCustomDelegate per se, I just want to call its setter in line.
Is that currently possible?ephemient
02/19/2022, 2:46 PMval
can't be assigned 😅ephemient
02/19/2022, 2:48 PMDelegates.observable(initialValue) { ... }
Youssef Shoaib [MOD]
02/19/2022, 2:54 PMYoussef Shoaib [MOD]
02/19/2022, 2:55 PMgetValue
and setValue
I guess I can handle this in provideDelegate
, but I was wondering if there's a neater way