nextQueue method

void nextQueue()

Implementation

void nextQueue() {
  if (_trackingQueue.length > 0) {
    _isProcessing = true;
    ITrackingQueue task = _trackingQueue.removeLast();
    this.callback?.call(
      task.eventName,
      task.payload,
      deleteLoginContactAfterPost: task.deleteLoginContactAfterPost,
    );
  } else {
    _isProcessing = false;
  }
}