getFloatOrDefault

fun getFloatOrDefault(key: String, default: Float): Flow<Float>

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