Content

data class Content<T>(val value: T) : StylishContentState<T>

The request completed successfully with a value.

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
val value: T

Functions

Link copied to clipboard
inline fun <T, R> StylishContentState<T>.mapContent(transform: (T) -> R): StylishContentState<R>

Maps only the content branch while preserving the state contract.