Optional

data class Optional<out T>(val defaultValue: T) : SectionOptionality<T>

The section is optional. If absent, defaultValue is used instead.

Constructors

Link copied to clipboard
fun <out T> Optional(defaultValue: T)

Properties

Link copied to clipboard
val defaultValue: T

The default value to use if the section is absent.