isTargetingGroupIsOkay method

bool isTargetingGroupIsOkay(
  1. Targeting? targeting
)

Implementation

bool isTargetingGroupIsOkay(Targeting? targeting) {
  // Groupe de variations,
  List<bool> booleanResultGroup = [];
  for (TargetingGroup itemGroup in targeting?.targetingGroups ?? []) {
    booleanResultGroup.add(checkTargetGroupIsOkay(itemGroup));
  }

  return booleanResultGroup.contains(true);
}