asStateFlow

Convert SharedPreferencesProperty to SharedPreferencesStateFlow.

object ThemeSp: ISharedPreferencesOwner {
.... // Code
val theme by boolean(false).asStateFlow()
}

// In Activity
val theme by boolean(false).asStateFlow()

Since

0.5.6