isNotEmptyOrNull

fun <T> String.isNotEmptyOrNull(notEmpty: (it: String) -> T): T?(source)

Parameters

notEmpty

T The value returned when the string is not empty.