evaluateTroubleShootingConditions method

void evaluateTroubleShootingConditions()

Implementation

void evaluateTroubleShootingConditions() {
  // To allow the dataUsageTracking we have to check
  _singleton
    ..troubleShootingReportAllowed = isTimeSlotValide() && // TimeSlot

        isBucketTroubleshootingAllocated() && // Bucket Allocation for TR

        isVisitorHasConsented(); // Visitor Consent

  if (_singleton.troubleShootingReportAllowed) {
    Flagship.logger(Level.ALL,
        "-------------- Troubleshooting Allowed ✅✅✅✅✅ ---------------");
  } else {
    //  Flagship.logger(Level.ALL,
    //     "-------------- Trouble shooting NOT Allowed ❌❌❌❌❌ --------------");
  }
}