ValueWithDefault

data class ValueWithDefault<out T>(val explicit: T?, val default: T)

A container for a value that can have a default value and can be manually set

Constructors

Link copied to clipboard
fun <out T> ValueWithDefault(explicit: T?, default: T)

Properties

Link copied to clipboard
val default: T
Link copied to clipboard
val explicit: T?
Link copied to clipboard
val value: T

Extensions

Link copied to clipboard

Create a copy with a new default value

Link copied to clipboard

Create a copy with a new explicit value