hasConstraint property

bool get hasConstraint

True when the policy carries at least one active constraint.

Implementation

bool get hasConstraint =>
    maxTotal != null || maxPerWindow != null || stopOn != null;