bucketVariations method

Campaigns bucketVariations(
  1. String visitorId,
  2. Bucketing scriptBucket,
  3. Map<String, dynamic> context,
  4. Map<String, dynamic> assignHistory,
)

Implementation

Campaigns bucketVariations(String visitorId, Bucketing scriptBucket,
    Map<String, dynamic> context, Map<String, dynamic> assignHistory) {
  // Check the panic mode
  if (scriptBucket.panic == true) {
    return Campaigns(visitorId, true, [], scriptBucket.accountSettings);
  }
  // Check the targeting and filter the variation he can run
  Campaigns result =
      processBucketing(visitorId, scriptBucket, context, assignHistory);
  return result;
}