evaluateStoredFeatureKeys function

bool evaluateStoredFeatureKeys(
  1. Map<String, dynamic>? features,
  2. List<String> featureKeys,
  3. bool requirementAll,
  4. bool negate,
  5. bool isEnabled(
    1. String key
    ),
)

Implementation

bool evaluateStoredFeatureKeys(
  Map<String, dynamic>? features,
  List<String> featureKeys,
  bool requirementAll,
  bool negate,
  bool Function(String key) isEnabled,
) {
  if (featureKeys.isNotEmpty && (features == null || features.isEmpty)) {
    return negate;
  }
  return evaluateResolvedKeys(featureKeys, requirementAll, negate, isEnabled);
}