bucketVariations method

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

Implementation

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