Condition.not constructor

Condition.not(
  1. dynamic cond
)

accepts same dynamic condition types as Condition but negates them (if ⇒ unless, unless ⇒ if)

Implementation

Condition.not(dynamic cond) {
  if (cond is Tag) {
    _setCond(cond.not());
  } else {
    _type = _ConditionType.invert;
    _setCond(cond, invert: true);
  }
}