snapshot method

EvaluationContext snapshot()

Captures a legacy context and its complete parent chain for SDK use.

Implementation

EvaluationContext snapshot() => _providerSnapshot != null
    ? this
    : EvaluationContext.immutable(
        targetingKey: targetingKey,
        attributes: attributes,
        parent: parent,
        rules: rules,
        cacheDuration: cacheDuration,
      );