$getProperty method
Get a property by identifier
on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'velocity':
return $Velocity.wrap($value.velocity);
case 'primaryVelocity':
final primaryVelocity = $value.primaryVelocity;
if (primaryVelocity == null) {
return const $null();
}
return $double(primaryVelocity);
default:
return _superclass.$getProperty(runtime, identifier);
}
}