onDtmfReceived method

void onDtmfReceived(
  1. int callId,
  2. int tone
)

Handle receive DTMF event raised by library and route it to matched call instance

Implementation

void onDtmfReceived(int callId, int tone) {
  _logs?.print('onDtmfReceived callId:$callId tone:$tone');

  int index = _callItems.indexWhere((c) => c.myCallId==callId);
  if(index != -1) _callItems[index].onDtmfReceived(tone);
}