decrement

fun MutableStateFlow<Int>.decrement(by: Int = 1): Int
fun MutableStateFlow<Long>.decrement(by: Long = 1): Long

Subtracts by from the value and returns the new value.

The update is atomic with respect to concurrent updates. Pass a negative by to add.