onEndCall function

Future<void> onEndCall(
  1. dynamic _callId, {
  2. required String status,
  3. String? where,
})

Implementation

Future<void> onEndCall(_callId, {required String status, String? where}) async {
  showLogI('END CALL=====>>>>>_ID: $_callId - ID: $callId <<<<<=========');
  if (_callId == callId) {
    callId = "";
    showLogI('END CALL=====>>>>>REMOVE<<<<<=========');
    await removeCallEvent();
    if (where != "onBackground") {
      appCallBloc.add(SendMessageCallEndEvent(callId: callId, status: status));
    }
  }
}