$getProperty method
Get a property by identifier
on this instance
Implementation
@override
$Value? $getProperty(Runtime runtime, String identifier) {
switch (identifier) {
case 'globalPosition':
return $Offset.wrap($value.globalPosition);
case 'localPosition':
return $Offset.wrap($value.localPosition);
case 'sourceTimeStamp':
final sourceTimeStamp = $value.sourceTimeStamp;
if (sourceTimeStamp == null) {
return const $null();
}
return $Duration.wrap(sourceTimeStamp);
case 'kind':
final kind = $value.kind;
if (kind == null) {
return const $null();
}
return $PointerDeviceKind.wrap(kind);
default:
return _superclass.$getProperty(runtime, identifier);
}
}