$getProperty method

  1. @override
$Value? $getProperty(
  1. Runtime runtime,
  2. String identifier
)

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'dx':
      return $double($value.dx);
    case 'dy':
      return $double($value.dy);
    case 'distance':
      return $double($value.distance);
    case 'distanceSquared':
      return $double($value.distanceSquared);
    case 'direction':
      return $double($value.direction);
    default:
      return _superclass.$getProperty(runtime, identifier);
  }
}