setTerminated method
Set 'terminated' and other attributes of the recent call item specified by callId
Implementation
void setTerminated(int callId, int statusCode, String displName, String duration) {
int index = _cdrItems.indexWhere((c) => c.myCallId==callId);
if(index == -1) return;
CdrModel cdr = _cdrItems[index];
cdr.displName = displName;
cdr.statusCode = statusCode;
cdr.duration = duration;
notifyListeners();
_raiseSaveChanges();
}