Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的课:
data class TestMockModel(val age: Int = 3)
如何通过年龄的 KParameter 获取年龄的默认值?
这样的
val ageKParameter = TestMockModel::class.parameters[0]
如何通过ageKParameter获取默认值