onAcceptNotif method

void onAcceptNotif(
  1. int callId,
  2. bool withVideo
)

Handle case when call answered by tapping notification button (Android only)

Implementation

void onAcceptNotif(int callId, bool withVideo) {
  int index = _callItems.indexWhere((c) => c.myCallId==callId);
  if(index != -1) _callItems[index].accept(withVideo);
}