how do I write this class with expect/actual?
# multiplatform
d
how do I write this class with expect/actual?
d
The `expect`/`actual` documentation here is likely to answer your question: https://kotlinlang.org/docs/mpp-connect-to-apis.html
l
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.