getOrElse

abstract fun getOrElse(defaultValue: T): T(source)

Returns the value of this provider if it has a value present. Returns the given default value if a value is not available.

Return

the value or the default value.

Since

4.3