increment

fun MutableStateFlow<Int>.increment(amount: Int = 1): Int

Atomically increments this MutableStateFlow by amount (default 1) and returns previous value.