Rachel
Toggle table of contents
3.5.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.core
/
love.yinlin.extension
/
lazyProvider
lazy
Provider
fun
<
T
:
Any
>
lazyProvider
(
initializer
:
(
)
->
T
?
)
:
ReadOnlyProperty
<
Any
?
,
T
?
>
与
lazy
不同的是
lazyProvider
在接受到 null 后不会固化, 直到接受到非空数据后缓存