getCallState function
Implementation
int getCallState({required String stateValue}) {
switch(stateValue){
case "MissedCall": return 0;
case "OutgoingCall": return 1;
case "IncomingCall": return 2;
default: return 1;
}
}