compute method Null safety

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

Implementation

@override
bool compute(SymbolTable? scope) {
  var v = expression.compute(scope) as bool;
  if (scope?.resolve('!strict!')?.value == false) {
    v = v == true;
  }

  return !v;
}