Join Slack
Powered by
how do I write this class with expect/actual?
# multiplatform
d
Dazai
09/03/2021, 3:37 AM
how do I write this class with expect/actual?
d
darkmoon_uk
09/03/2021, 6:45 AM
The `expect`/`actual` documentation here is likely to answer your question:
https://kotlinlang.org/docs/mpp-connect-to-apis.html
l
Luis
09/03/2021, 11:51 AM
I would just have the variable you need in the constructor, no need for expect/actual on the actual class. For the variable itselt, you could have a expect provider function with matching actuals returning the value you need.
Open in Slack
Previous
Next