api / org.gradle.api.provider / Provider / getOrNull

getOrNull

abstract fun getOrNull(): T

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

Return
the value or null