contains method

bool contains(
  1. int callId
)

Returns true if exists call with specified id

Implementation

bool contains(int callId) {
  int index = _callItems.indexWhere((c) => c.myCallId==callId);
  return (index != -1);
}