getCallState function

int getCallState({
  1. required String stateValue,
})

Implementation

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