expressions property

set expressions (List<Object?> expressions)

Implementation

set expressions(List<Object?> expressions) {
  assert(expressions.length == variableNames.length,
      'Unexpected length of expressions to check');

  var different = false;
  for (var i = 0; i < expressions.length; i++) {
    if (_knownValues[i] != expressions[i]) {
      different = true;
      _knownValues[i] = expressions[i];
    }
  }

  if (different) {
    final msg = StringBuffer();
    for (var i = 0; i < expressions.length; i++) {
      if (i != 0) {
        msg.write(', ');
      }

      msg.write('${variableNames[i]}: ${expressions[i]}');
    }

    print(msg);
    debugger(message: 'Paused at @debug tag for $sourceLocation');
  }
}