evaluateConditions method

  1. @override
bool evaluateConditions(
  1. PreferenceCenterConditionState state
)
override

Implementation

@override
bool evaluateConditions(PreferenceCenterConditionState state) {
  if (conditions == null || conditions!.isEmpty) {
    return true;
  }
  for (var condition in conditions!) {
    if (!condition.evaluate(state)) {
      return false;
    }
  }
  return true;
}