hasKey

open fun hasKey(): Boolean(source)

Checks whether this preference has a valid key.

Return

true if the key exists and is not a blank string, false otherwise