getBooleanOrDefault

fun getBooleanOrDefault(key: String, default: Boolean): Flow<Boolean>

Retrieves a Flow containing the value from the data store preferences given its key, or default otherwise.