$setProperty method

  1. @override
void $setProperty(
  1. Runtime runtime,
  2. String identifier,
  3. $Value value
)
inherited

Set a property by identifier on this instance to value

Implementation

@override
void $setProperty(Runtime runtime, String identifier, $Value value) {
  final setter = evalClass.setters[identifier];
  if (setter == null) {
    if (evalSuperclass != null) {
      return evalSuperclass!.$setProperty(runtime, identifier, value);
    } else {
      throw EvalUnknownPropertyException(identifier);
    }
  }

  runtime.args.add(this);
  runtime.args.add(value);
  runtime.bridgeCall(setter);
}