static Ambient Of
fun <T> staticAmbientOf(defaultFactory: () -> T? = null): ProvidableAmbient<T>
Content copied to clipboard
Create an ambient key that can be provided using Providers. Changing the value provided will cause the entire tree below Providers to be recomposed, disabling skipping of composable calls.
A static ambient should be only be used when the value provided is highly unlikely to change.