getTreatmentsWithConfig method

  1. @override
Future<Map<String, SplitResult>> getTreatmentsWithConfig(
  1. List<String> featureFlagNames, [
  2. Map<String, dynamic> attributes = const {},
  3. EvaluationOptions evaluationOptions = const EvaluationOptions.empty()
])
override

Convenience method to perform multiple evaluations. Returns a Map in which the keys are feature flag names and the values are SplitResult objects.

A list of feature flag names need to be specified in featureFlagNames.

Optionally, a Map can be specified with the attributes parameter to take into account when evaluating.

Implementation

@override
Future<Map<String, SplitResult>> getTreatmentsWithConfig(
    List<String> featureFlagNames,
    [Map<String, dynamic> attributes = const {},
    EvaluationOptions evaluationOptions =
        const EvaluationOptions.empty()]) async {
  return _platform.getTreatmentsWithConfig(
      matchingKey: _matchingKey,
      bucketingKey: _bucketingKey,
      splitNames: featureFlagNames,
      attributes: attributes,
      evaluationOptions: evaluationOptions);
}