hasConnectedFewCalls method

bool hasConnectedFewCalls()

Returns true if present at least 2 calls in connected/held state

Implementation

bool hasConnectedFewCalls() {
  int counter = 0;
  for (CallModel m in _callItems) {
    counter += (m.state == CallState.connected) || (m.state == CallState.held)
        ? 1
        : 0;
  }
  return counter > 1;
}