getIntOrDefault

fun getIntOrDefault(key: String, default: Int): Flow<Int>

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