absent

abstract fun <T> absent(): Provider<T>(source)

Returns a Provider that is always absent, that is, one that never has a value.

The returned provider is never present: querying its value with get always fails and getOrNull always returns null.

Return

The provider. Never returns null.

Since

9.9.0

Parameters

<T>

the type of the value of the provider

See also