rules property

List<Rule>? rules
getter/setter pair

When the policy is evaluated for a given target, all rules which refer to that target are evaluated in sequence.

The first rule for which the predicate evaluates to true is considered, and its outcome is used. If no rule matches, the default update behavior applies. In other words, this behaves like a chained if-else statement.However, if an update has been available for more than a certain amount of time, any outcome of BLOCK is automatically changed to the default update behavior. At most 100 rules are allowed.

Optional.

Implementation

core.List<Rule>? rules;