removeHitsForVisitorId method

void removeHitsForVisitorId(
  1. String visitorId
)

Extract the hits // Hits must be deleted from the pool (expect the Consent type ones).

Implementation

void removeHitsForVisitorId(String visitorId) {
  fsQueue.removeWhere((element) {
    return ((element.visitorId == visitorId ||
            element.anonymousId == visitorId) &&
        element.type != HitCategory.CONSENT);
  });
}