OptionalshouldOptionalshouldA function returning a boolean that determines whether the cached value should be discarded and reinitialized. This function is called every time the lazy function is called to get the value.
If you want to reinitialize on every call, use LazyOptions.shouldCache instead.
A function returning a boolean that determines whether the value should be cached and returned on subsequent calls. Returning
truekeeps the default behaviour while returningfalsedisables the default lazy behaviour. This function is called only once - when the value is first initialized.To decide whether to cache the value on subsequent calls, use LazyOptions.shouldReinitialize instead.
Warning
If this function returns
false,shouldReinitializewill be ignored.