I'm looking to combine 4 StateFlow values and make 1 StateFlow from these. I know already of the combine function like this:
val buttonEnabled = cameraPermission.combine(micPermission) {
//some logic
}
How could this be done with 4 flows? when I attempt the below, I get the error there is too many arguments, but the combine function docs do say you are able to add up to 5 flows?
val buttonEnabled = cameraPermission.combine(micPermission, locationPermission, contactsPermission) {
}