removeCallEvent function

Future<void> removeCallEvent({
  1. String? callId,
})

Implementation

Future<void> removeCallEvent({String? callId}) async {
  if (callId?.isNotEmpty == true) {
    await FlutterCallkitIncoming.endCall(callId!);
  } else {
    await FlutterCallkitIncoming.endAllCalls();
  }
  // Eraser.clearAllAppNotifications();
}