Companion

Read fallbacks do not persist another value; assignments still update the saved property.

Functions

Link copied to clipboard
fun <T : Any> StateValue<T>.default(default: () -> T?): FallbackValue<T, T?>

Supplies a nullable fallback on reads and observation, without writing it to the handle.

Link copied to clipboard
fun <T : Any> StateValue<T>.required(default: () -> T): FallbackValue<T, T>

Supplies a non-null fallback on reads and observation, without writing it to the handle.