If.not constructor
If.not(})
You can negate the Condition with If.not
:
If.not(
Condition(Entity.Player()),
then: [
Log('true')
]
)
Implementation
If.not(
dynamic condition, {
required this.then,
this.orElse,
this.targetFilePath = 'objd',
this.targetFileName,
this.encapsulate = true,
this.assignTag,
this.useTag = 'objd_isTrue',
}) {
assert(then.isNotEmpty);
invert = true;
getCondition(condition);
}