nextQueue method

void nextQueue()

Implementation

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