$getProperty method
Get a property by identifier
on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case '+':
return __add;
case '-':
return __subtract;
case '*':
return __multiply;
case 'squaredDistanceTo':
return __squaredDistanceTo;
case 'distanceTo':
return __distanceTo;
case 'x':
return $num($value.x);
case 'y':
return $num($value.y);
default:
return _superclass.$getProperty(runtime, identifier);
}
}