switchedCall method

CallModel? switchedCall()

Returns switched call instance (or null when there are no calls)

Implementation

CallModel? switchedCall() {
  final int index = _callItems.indexWhere((c) => c.myCallId==_switchedCallId);
  return (index == -1) ? null : _callItems[index];
}