compute method Null safety

  1. @override
dynamic compute(
  1. SymbolTable? scope
)
override

Implementation

@override
dynamic compute(scope) {
  var v = condition.compute(scope) as bool;

  if (scope?.resolve('!strict!')?.value == false) {
    v = v == true;
  }

  return v ? ifTrue.compute(scope) : ifFalse.compute(scope);
}