flushAllTrackFromQueue method

List<String> flushAllTrackFromQueue()

Remove all track elements in the pool Return an id for the removed element to remove them in database

Implementation

List<String> flushAllTrackFromQueue() {
  List<String> ret = [];
  Flagship.logger(
      Level.DEBUG, "Remove all visitorId's track elemets from the pool");
  ret = fsQueue.map((e) => e.id).toList();
  fsQueue.clear();
  return ret;
}