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
constructor(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

Functions

Link copied to clipboard

Create a copy with a new default value

Link copied to clipboard

Create a copy with a new explicit value