findBackingFieldValue
示例:
object MyData : AutoSavePluginData(PluginMain) {
val list: List<String> by value()
}
val value: Value<List<String>> = MyData.findBackingFieldValue(MyData::list)
Content copied to clipboard
See also
示例:
object MyData : AutoSavePluginData(PluginMain) {
@ValueName("theList")
val list: List<String> by value()
val int: Int by value()
}
val value: Value<List<String>> = MyData.findBackingFieldValue("theList") // 需使用 @ValueName 标注的名称
val intValue: Value<Int> = MyData.findBackingFieldValue("int")
Content copied to clipboard