ProvidableAmbient

abstract class ProvidableAmbient<T> : Ambient<T>

A ProvidableAmbient can be used in Providers to provide values.

See also

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
provides
Link copied to clipboard
common
infix fun provides(value: T): ProvidedValue<T>
Associates an ambient key to a value in a call to Providers.
providesDefault
Link copied to clipboard
common
infix fun providesDefault(value: T): ProvidedValue<T>
Associates an ambient key to a value in a call to Providers if the key does not already have an associated value.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

current
Link copied to clipboard
common
val current: T
Return the value provided by the nearest Providers component that invokes, directly or indirectly, the composable function that uses this property.